lkml.org 
[lkml]   [2004]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subject/proc/[number] special entries
From
Date
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.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.151 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site