From: Dmitry Torokhov <dtor_core@ameritech.net>
To: Kay Sievers <kay.sievers@vrfy.org>
Cc: linux-kernel@vger.kernel.org, Greg KH <greg@kroah.com>
Subject: Re: unify sysfs device tree
Date: Thu, 12 Jan 2006 23:24:49 -0500 [thread overview]
Message-ID: <200601122324.49442.dtor_core@ameritech.net> (raw)
In-Reply-To: <20060113015652.GA30796@vrfy.org>
On Thursday 12 January 2006 20:56, Kay Sievers wrote:
> Here is for illustration the "input" layer as a flat /sys/class directory. All
> devices point to /sys/devices which exposes the device hierarchy if userspace
> wants to know that:
> /sys/class/
> ...
> |-- input
> | |-- input0 -> ../../devices/platform/i8042/serio1/input0
> | |-- input1 -> ../../devices/platform/i8042/serio0/input1
> | |-- input3 -> ../../devices/platform/i8042/serio0/serio2/input3
> | |-- input4 -> ../../devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.0/input4
> | |-- mice -> ../../devices/mice
> | |-- mouse0 -> ../../devices/platform/i8042/serio0/input1/mouse0
> | |-- mouse1 -> ../../devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.0/input4/mouse1
> | `-- mouse2 -> ../../devices/platform/i8042/serio0/serio2/input3/mouse2
Looks nice with exception of my standard argument that inputX and
mouseX are objects of different (but related) classes.
I believe this also relies on overriding class' methods (release, uevent)
by individual devices and inability for class to define standard attributes
for such devices. Pretty yucky...
--
Dmitry
next prev parent reply other threads:[~2006-01-13 4:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-13 1:56 unify sysfs device tree Kay Sievers
2006-01-13 4:24 ` Dmitry Torokhov [this message]
2006-01-13 12:42 ` Kay Sievers
2006-01-16 13:43 ` Kay Sievers
2006-01-16 15:03 ` Mike Snitzer
2006-01-16 15:07 ` Kay Sievers
2006-01-25 16:10 ` Kay Sievers
2006-01-25 22:03 ` Greg KH
2006-01-27 0:12 ` Kay Sievers
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=200601122324.49442.dtor_core@ameritech.net \
--to=dtor_core@ameritech.net \
--cc=greg@kroah.com \
--cc=kay.sievers@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
/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