Re: getting more that 4K out of a proc file?

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Thu Feb 17 2000 - 06:46:54 EST


> In net/atm/proc.c, the file position is abused as an item counter.
> Works pretty well. (Hardly anybody does calculated seeks, and the
> more common "rewind" and "return to previously seen position" cases
> are okay.)

Yuck. Take a look at the routing code for IP stuff. We use fixed width records
with space padding. Then you just shift right to get the item counter
and it still works byte level

-
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 : Wed Feb 23 2000 - 21:00:18 EST