Re: proc entries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Sep 22, 2001 at 11:34:19AM +0530, C.Mohanasundaram wrote:
> from the proc_misc.c file i understood how the kernel works when a useland 
> program tries to read the files like loadavg, uptime etc under /proc.But i 
> dont understand how it handles the entries under the directories for example
> /proc/net/ and /proc/<pid>/

/proc/net/ is quite normal. The directory created in fs/proc/root.c,
and populated in the various net/ directories (grep for proc_net in
net/*.c).

/proc/<pid>/ is a bit magic, the files and directories are only created
upon request. See the various proc_pid_* functions in fs/proc/base.c.


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/
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux