Re: proc_register_dynamic() problem & questions

rubini@pop.systemy.it
Mon, 10 Jun 1996 07:53:08 +0200 (MET DST)


Hi.

> I'm trying to use "proc_register_dynamic()"+"get_info()" for displaying
> some kernel data structures. Can i somehow output more than 4K of data?

No. You should use "proc_register_dynamic()" + "fill_inode()", and
create your inode_operations and file_operations.

> The current implementation {the VFS calls array_read(), array_read()
> allocates one page and calls get_info()} seems to be limited to 4K.

Sure. Using get_info is just a way to easily create short read-only files.
In the /proc filesystem you can still do everything you like, but with
the full-featured vfs interface.

> any comments greatly appreciated, Ingo

hope this helps. Feel free to bug me personally for firther info.

Regards
/alessandro

--
    __ o   La forza dei forti sta nel traversare le traversie con occhio sereno
   _`\<,                                                          (Paperino)
__( )/( )__     alessandro rubini - rubini@ipvvis.unipv.it