lkml.org 
[lkml]   [2003]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectseq_file and proc_dir_entry data (was Re: [PATCH 5/8] 2.5.74 - seq_file conversion of /proc/net/atm (vc))
From
Date
On creating a proc entry, it's possible to set the data field to an
arbitrary pointer value. Later, that pointer value can be used in
callbacks to do interesting things, like access persistent data
associated with the proc file.

I had to rewrite seq_read so that when it calls the start operation it
passes a pointer to a struct (not an loff_t) with iterator info and
also a pointer to the proc_dir_entry data field.

Would it be possible to modify seq_file to give easier access to the
data field of proc_dir_entry, or is seq_file too general for that to
be practical?

--
--Ed L Cashin | PGP public key:
ecashin@uga.edu | http://noserose.net/e/pgp/

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

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.120 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site