lkml.org 
[lkml]   [2005]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] subclasses in sysfs to solve world peace
On Fri, Sep 16, 2005 at 02:21:53AM -0500, Dmitry Torokhov wrote:
> > >
> > > No, like your first picture, except 'interfaces/mice' will be a directory,
> > > not a symlink, since it does not have class_device parent. I should have
> > > said "Otherwise it gets added into _its_ class directory".
> >
>
> Ok, this is _very_ raw and I am creating double symlinks somehow, but still
> it shows it can be done:
>
> [dtor@core ~]$ tree /sys/class/input/
> /sys/class/input/
> |-- devices
> | |-- input0

Close, just drop the "devices" subdir, and you have my proposal, I'm
glad we agree :)

> `-- interfaces
> |-- event0 -> ../../../class/input/devices/input0/event0

I don't see why we need the interfaces subdir at all.

thanks,

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

\
 
 \ /
  Last update: 2005-09-17 00:02    [W:0.101 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site