[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: procfs again



On Tue, Oct 10, 2000 at 05:29:32PM +0530, atul wrote:
        ^^^^^^^^^^^^
Please correct your computer's clock.

> hi
> recently read the procfs guide on kernel newbies..
> its  wonderful..

Thank you.

> but there is one question that is troubling me..
> isn't there any way we can get the proc_dir_entry* to an existing file/dir
> in the procfs??

I don't see why this feature would be useful, but if you really insist
on it, you might want to have a look at how remove_proc_entry() in
fs/proc/generic.c works.

> n what if we use create_proc_entry() with name filed same as the name of an
> existing file in the procfs..??

Then you will end up with two proc entries with the same name. Maybe
I'll should supply a patch to test for it.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/