linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* procfs doubts
@ 2001-08-09  9:23 Dattatray Kulkarni
  2001-08-09 22:50 ` Erik Mouw
  0 siblings, 1 reply; 2+ messages in thread
From: Dattatray Kulkarni @ 2001-08-09  9:23 UTC (permalink / raw)
  To: linux-kernel

Hi,
I have some doubts regarding proc file system in linux.
1. read_proc & get_info have similar functionality. when i do cat
/proc/net/some_procfile, read_info function is called. then how & when
get_info function is called?
2. What is the exact difference between proc_create_entry &
proc_register?  Is it necessary to write both of these functions?
3 . How the function write_proc works? and when that function is called
by the kernel?
regards,
dattatray.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: procfs doubts
  2001-08-09  9:23 procfs doubts Dattatray Kulkarni
@ 2001-08-09 22:50 ` Erik Mouw
  0 siblings, 0 replies; 2+ messages in thread
From: Erik Mouw @ 2001-08-09 22:50 UTC (permalink / raw)
  To: Dattatray Kulkarni; +Cc: linux-kernel

On Thu, Aug 09, 2001 at 02:53:04PM +0530, Dattatray Kulkarni wrote:
> I have some doubts regarding proc file system in linux.
> 1. read_proc & get_info have similar functionality. when i do cat
> /proc/net/some_procfile, read_info function is called. then how & when
> get_info function is called?

AFAIK get_info() is deprecated, you have to use read_proc().

> 2. What is the exact difference between proc_create_entry &
> proc_register?  Is it necessary to write both of these functions?

proc_register() is no longer an exported function, you have to use
proc_create_entry() and friends.

> 3 . How the function write_proc works? and when that function is called
> by the kernel?

It's all explained in the procfs guide in Documentation/DocBook/. Just
run "make psdocs" in your kernel tree and you'll get it nicely
formatted.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-08-09 22:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-09  9:23 procfs doubts Dattatray Kulkarni
2001-08-09 22:50 ` Erik Mouw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).