<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: Arial; font-size: medium; ">I think I found: <br>static const struct pid_entry tgid_base_stuff[] at fs/proc/base.c has all /proc/[pid] entries.</span><div>

<font class="Apple-style-span" face="Arial" size="3"><br></font><div><font class="Apple-style-span" face="Arial" size="3">But unfortunately it does not use create_proc_entry function, and I&#39;m trying to create a new syscall that creates a new proc_entry for the caller process. </font></div>

<div><font class="Apple-style-span" face="Arial" size="3">Adding a new element in tgid_base_stuff[] makes the things more complicated than simply call a create_proc_entry function.</font></div><div><font class="Apple-style-span" face="Arial" size="3"><br>

</font></div><div><font class="Apple-style-span" face="Arial" size="3">Is there another way to do it ?</font></div><div><div><font class="Apple-style-span" face="Arial" size="3"><br></font><span class="Apple-style-span" style="font-family: Arial; font-size: medium; ">Mauro Romano Trajber</span><br>

<br><div class="gmail_quote">On Mon, Jan 10, 2011 at 3:18 PM, Mauro Romano Trajber <span dir="ltr">&lt;<a href="mailto:trajber@gmail.com">trajber@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<span style="font-family:Arial;font-size:medium">How can I create a new proc entry under /proc/[pid] ? <br>I using create_proc_entry(&quot;SOME_FILE&quot;, 0644, NULL /* here goes the pid proc entry */); <br>
Is there any way to get PID directory as a parent proc entry ? How ? </span><div><span style="font-family:Arial;font-size:medium"><br></span></div><div><span style="font-family:Arial;font-size:medium">Thanks,</span></div>


<div><span style="font-family:Arial;font-size:medium">Mauro</span></div>
</blockquote></div><br></div></div></div>