RE: Suggested dual human/binary interface for proc/devfs

From: George Bonser (grep@shorelink.com)
Date: Sun Apr 09 2000 - 15:43:02 EST


On Sun, 9 Apr 2000, Dunlap, Randy wrote:

> So with one value per "file," how do you handle the
> well-known problem of inconsistent data, i.e.,
> one or more values being updated, program reads
> file value(s), some more value(s) updated, program
> reams some more value(s)?
>
> Is there also a well-known solution to this?

In this case since one is a function of the other the correct solution is
probably to have a packet-size item and report either bytes or packets and
use the packet-size to calculate the other. This may in fact be what is
going on anyway, I have not looked at the code. One of the values may be
calculated from the other when the data is presented.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:12 EST