lkml.org 
[lkml]   [1996]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: proc_register_dynamic() problem & questions
Date

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


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