Re: /proc/pids

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

 



Hi,

On 10/17/06, suman adak <gnusuman@xxxxxxxxx> wrote:
On 10/17/06, Jakko Pastuchio <jakkop@xxxxxxxxx> wrote:
> I wanted to understand how the /proc/[pid] directories are maintained.
> can u show me where is it in the code pls ?
look at linux-2.6.17/fs/proc/inode.c and  proc_get_inode() function.
entry can be manipulated using struct proc_dir_entry object which is defined
in /include/linux/proc-fs.h. proc_register() function  may be used to add an
entry under a given parent entry.create_proc_entry() function may be used to
create and register a dynamically allocated entry given a name.
Well you gave me the general code of the proc filesystem;
alas, I want to know where is the code that _uses_ the proc code
in order to export proc directories of the process ids of the system
(i.w. /proc/1/, /proc/2/, ...)
thanks !
jakko


Thanks
suman



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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