Messages in this thread | | | Date | Mon, 29 Sep 2003 14:40:01 -0400 | From | Jean-Guillaume <> | Subject | Re: Simple Procfs question: Triggering an "action" when opening a directory instead of a file (with seqfile.h)??? |
| |
viro@parcelfarce.linux.theplanet.co.uk wrote:
>On Mon, Sep 29, 2003 at 01:40:03PM -0400, Jean-Guillaume wrote: > > >>Hello everybody :) >> >> > > > >>I need some help on this one, I couldn't find anything on google or in >>the archives of the mailing list. Here it goes: >> >>I want to trigger an action when "opening" a directory of the procfs. >>This is easy for files, but how is it done for directories...??? >> >> > >With a separate filesystem. Don't do that on procfs, it's messy enough as >it is. > >
lol, ok then :)
I have indeed noticed some funny things with the procfs. Like, doing a "ls" on my tipc dir said the directory was empty, but I could do a "vi /proc/tipc/file" and see the content of file. Invisible file? :)
- 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/
| |