Messages in this thread | | | From | "Peter T. Breuer" <> | Subject | Re: getting more that 4K out of a proc file? | Date | Thu, 17 Feb 2000 13:14:21 +0100 (MET) |
| |
"A month of sundays ago Alan Cox wrote:" > > 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
I have rewritten the generic proc read routine to at least be comprehensible. (It's the stuff that interfaces the read calls made at FS level to the functions registered with proc).
I was waiting for notices to come in of uses of some of its (to me obscure and probably disused) modes before I changed the functionality to get rid of them. I've been collecting the notices here and will cheerfully post a suggested patch shortly ... (snowed under here).
Peter
- 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/
| |