On 10/17/06, Jakko Pastuchio <jakkop@xxxxxxxxx> wrote:
look at linux-2.6.17/fs/proc/inode.c and proc_get_inode() function.
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 ?
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