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

From: almesber@lrc.di.epfl.ch
Date: Wed Feb 16 2000 - 23:11:25 EST


Peter T. Breuer wrote:
> Could someone kindly point me to an example in the source to show me
> jow to get more than a page out of a proc file on read?

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.)

- Werner

-- 
  _________________________________________________________________________
 / Werner Almesberger, ICA, EPFL, CH       werner.almesberger@ica.epfl.ch /
/_IN_N_032__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/

- 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:17 EST