Re: debugfs in the namespace

From: Greg KH
Date: Thu Dec 16 2004 - 20:26:27 EST


On Fri, Dec 17, 2004 at 02:15:22AM +0100, Grzegorz Kulewski wrote:
> >>And polluting / with proc, sys, dev, selinux, debug and who knows what
> >>else is at least equally bad.
> >
> >Why? Each location is defined to have one, specific, well defined thing
> >there that people can count on (or not count on in the case of /debug.)
>
> Because in short time we will end with / occupying >1 page of console -
> and it will be bad in my opinion. Besides do we really need that many
> fses - each for exporting kernel data to userspace?

Yes, we do.

> This is at least strange. Why can not /dev, /selinux be merged into
> /sys (ok, maybe there should be symlinks in /dev to devices in right
> device directory in /sys).

Because all three of them are radically different things.

> And I have also other question: Where can I find some info about using
> /sys (in kernel)

Documentation/driver-model/* is a good start. It's a bit out of date,
but better than nothing. The lwn.net series of articles is also good to
look at.

> and some small note about its implementation and overhead (cpu and
> memory)?

For that you will have to look at the code itself.

Good luck,

greg k-h
-
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/