/proc/[number] special process entries
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat Kernel > /proc/[number] special process entries




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    /proc/[number] special process entries  
Minderbinder


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-10-04 10:53 PM

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 (wher
e
[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!

Cheers,
Minderbinder.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:32 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register