From: Matthew Hindle <luminary@penguinmail.com>
To: linux-kernel@vger.kernel.org
Subject: /proc/[number] special entries
Date: Sun, 10 Oct 2004 15:31:24 +1000 [thread overview]
Message-ID: <1097386284.7715.3.camel@chiyo.azumanga> (raw)
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.
next reply other threads:[~2004-10-10 5:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-10 5:31 Matthew Hindle [this message]
2004-10-10 15:35 ` Buddy Lucas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1097386284.7715.3.camel@chiyo.azumanga \
--to=luminary@penguinmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®