On Sun, 10 Jan 2010 12:43:02 +0200
Alexey Dobriyan <adobri...@gmail.com> wrote:

> > On Thu,  7 Jan 2010 22:44:24 +0100
> > r.spl...@umail.leidenuniv.nl wrote:
> > 
> > > 1. joi pointed out that procfs is deprecated, and I should use
> > > sysfs instead.
> 
> /proc is not deprecated per se, you simply shouldn't expose
> everything you know to userspace, because it will be impossible
> to remove later.

I think adding "random crap" to procfs is frowned upon nowadays,
that's probably what he meant. Attributes should be in sysfs.
What to expose is another question, you are right.

If the interface is just temporary, it should probably go into
debugfs. That way one can have the code in the kernel proper,
not fear about freezing it, and prevent people from finding it
by accident. And it should be guarded by an "EXPERIMENTAL, DANGEROUS"
Kconfig option in any case.

-- 
Pekka Paalanen
http://www.iki.fi/pq/

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to