Welcome! Log In Create A New Profile


New proc entry under /proc/[pid]

Posted by trajber 
New proc entry under /proc/[pid]
January 10, 2011 12:05PM
How can I create a new proc entry under /proc/[pid] ?
I using create_proc_entry("SOME_FILE", 0644, NULL /* here goes the pid proc entry */);
Is there any way to get PID directory as a parent proc entry ? How ?

Re: New proc entry under /proc/[pid]
January 10, 2011 01:36PM
I think I found:
static const struct pid_entry tgid_base_stuff[] at fs/proc/base.c

Mauro Romano Trajber
Re: New proc entry under /proc/[pid]
January 10, 2011 01:51PM
One more thing.

Adding a new element in tgid_base_stuff[] makes the things more complicated than simply call a create_proc_entry function.
Is there another way to do it ?

Mauro Romano Trajber

Your Email:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 15 plus 1?