Ive been looking at proc_fs.h and I think i can do most of what i need to in there:
Although im not sure how to implement it..
Would using proc_readdir(struct file *, void *, filldir_t); in a loop allow me to go through all the proc_entries in the proc filesystem?
Although it seems this returns an int. If i could somehow loop through the entries and get a handle for each proc_dentry struct and then I could get the proc_inode from that and then get the pid from that.
Just wondering if proc_readdir is the right thing to use here and if so how do I implement it. If not are their any other methods in proc_fs.h that do the job? Thanks.
Btw quicklink to proc_fs.h here : http://lxr.linux.no/source/include/linux/proc_fs.h