Re: /proc/pids

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

 





On 10/17/06, Jakko Pastuchio <jakkop@xxxxxxxxx> wrote:
Hi ppl,

I wanted to understand how the /proc/[pid] directories are maintained.
every time a new task is forked/closed a new proc dir is registered ?
by whom ?
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.

Thanks
suman


[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