Messages in this thread | | | Subject | seq_file and proc_dir_entry data (was Re: [PATCH 5/8] 2.5.74 - seq_file conversion of /proc/net/atm (vc)) | From | Ed L Cashin <> | Date | Wed, 09 Jul 2003 10:35:51 -0400 |
| |
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/
| |