Re: Simple Procfs question: Triggering an "action" when opening a directory instead of a file (with seqfile.h)???

From: viro
Date: Mon Sep 29 2003 - 13:11:32 EST


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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/