public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* /proc/[number] special entries
@ 2004-10-10  5:31 Matthew Hindle
  2004-10-10 15:35 ` Buddy Lucas
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Hindle @ 2004-10-10  5:31 UTC (permalink / raw)
  To: linux-kernel

I was wondering if anybody could help me with a hint or two...

I'm trying to add a sub-directory to each /proc/[number] directory
(where [number] is a process id). I think that I need to get a
proc_dir_entry* so that I can call:

proc_mkdir("mysubdir", (struct proc_dir_entry *) parent);

However, I can't work out how to get a reference to the proc_dir_entry*
I need. I can find the other entries in the proc directory (such as bus,
cpuinfo. misc, net...) by doing something like this:

struct proc_dir_entry * dp;
dp = &proc_root;
dp = dp->subdir;
while (dp != NULL) {
  printk("er... found: %s\n",dp->name);
  dp = dp->next;
}

However, the only entries that don't show up are the [number] entries.
Assistance please!

Please CC: any replies to <luminary@penguinmail.com>.

Kind regards,
Matt Hindle.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-10 15:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-10  5:31 /proc/[number] special entries Matthew Hindle
2004-10-10 15:35 ` Buddy Lucas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox