From: Kay Sievers <kay.sievers@vrfy.org>
To: Dmitry Torokhov <dtor_core@ameritech.net>
Cc: Greg KH <gregkh@suse.de>,
linux-kernel@vger.kernel.org, Vojtech Pavlik <vojtech@suse.cz>,
Hannes Reinecke <hare@suse.de>,
Patrick Mochel <mochel@digitalimplant.org>,
airlied@linux.ie
Subject: Re: [RFC] subclasses in sysfs to solve world peace
Date: Fri, 16 Sep 2005 04:14:15 +0200 [thread overview]
Message-ID: <20050916021415.GB13486@vrfy.org> (raw)
In-Reply-To: <200509152103.42313.dtor_core@ameritech.net>
On Thu, Sep 15, 2005 at 09:03:41PM -0500, Dmitry Torokhov wrote:
> On Thursday 15 September 2005 20:54, Kay Sievers wrote:
> > On Thu, Sep 15, 2005 at 08:23:43PM -0500, Dmitry Torokhov wrote:
> > > On Thursday 15 September 2005 20:04, Kay Sievers wrote:
> > > > I like that the child devices are actually below the parent device
> > > > and represent the logical structure. I prefer that compared to the
> > > > symlink-representation between the classes at the same directory
> > > > level which the input patches propose.
> > >
> > > Why don't we take it a step further and abandon classes altogether?
> > > This way everything will grow from their respective hardware devices.
> >
> > Not everything is hardware. :)
> >
> > > Class represent a set of objects with similar characteristics. In
> > > this regard event0 is no "lesser" than input0. Although they are
> > > linked they are objects of the same importance. I do want to see
> > > all input interfaces without scanning bunch of directories.
> >
> > No problem, how about this:
> > /sys/class/input/
> > |-- input0
> > | |-- event0
> > | | `-- dev
> > | `-- mouse0
> > | | `-- dev
> > |-- input1
> > | |-- event1
> > | | `-- dev
> > | `-- ts0
> > | | `-- dev
> > |-- mice
> > | `-- dev
> > `-- interfaces
> > |-- event0 ->·../input0/event0
> > |-- event1 ->·../input1/event1
> > |-- mouse0 ->·../input0/mouse0
> > |-- mice -> ../mice
> > `-- ts0 -> ../input1/ts0
> >
>
> I am thinking... the rule would be - when adding a class device if it
> has a class_device parent then it gets added to parent's directory and
> symlinked into class. Otherwise it gets added into class directory.
Like this?
/sys/class/input/
|-- input0
| |-- event0
| | `-- dev
| `-- mouse0
| | `-- dev
|-- input1
| |-- event1
| | `-- dev
| `-- ts0
| | `-- dev
|-- mice
| `-- dev
|-- event0 ->·input0/event0
|-- event1 ->·input1/event1
|-- mouse0 ->·input0/mouse0
`-- ts0 -> input1/ts0
Kay
next prev parent reply other threads:[~2005-09-16 2:14 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-16 0:20 [RFC] subclasses in sysfs to solve world peace Greg KH
2005-09-16 0:58 ` Dmitry Torokhov
2005-09-16 1:46 ` Kay Sievers
2005-09-16 1:58 ` Dmitry Torokhov
2005-09-16 21:54 ` Greg KH
2005-09-16 1:04 ` Kay Sievers
2005-09-16 1:23 ` Dmitry Torokhov
2005-09-16 1:54 ` Kay Sievers
2005-09-16 2:03 ` Dmitry Torokhov
2005-09-16 2:14 ` Kay Sievers [this message]
2005-09-16 2:36 ` Dmitry Torokhov
2005-09-16 2:43 ` Kay Sievers
2005-09-16 3:10 ` Dmitry Torokhov
2005-09-16 7:21 ` Dmitry Torokhov
2005-09-16 21:48 ` Greg KH
2005-09-16 22:55 ` Dmitry Torokhov
2005-09-16 8:02 ` Vojtech Pavlik
2005-09-16 15:44 ` Dmitry Torokhov
2005-09-16 21:50 ` Greg KH
2005-09-16 22:56 ` Dmitry Torokhov
2005-09-17 0:48 ` Dave Airlie
2005-09-16 21:49 ` Greg KH
2005-09-16 7:59 ` Vojtech Pavlik
2005-09-16 21:55 ` Greg KH
2005-09-16 22:45 ` Dmitry Torokhov
2005-09-17 0:20 ` Antonino A. Daplas
-- strict thread matches above, loose matches on Subject: below --
2005-09-16 1:45 David Lang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050916021415.GB13486@vrfy.org \
--to=kay.sievers@vrfy.org \
--cc=airlied@linux.ie \
--cc=dtor_core@ameritech.net \
--cc=gregkh@suse.de \
--cc=hare@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mochel@digitalimplant.org \
--cc=vojtech@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox