From: Kay Sievers <kay.sievers@vrfy.org>
To: Jonathan Cameron <kernel@jic23.retrosnub.co.uk>
Cc: Greg KH <greg@kroah.com>, Jonathan Cameron <jic23@cam.ac.uk>,
LKML <linux-kernel@vger.kernel.org>,
Manuel Stahl <manuel.stahl@iis.fraunhofer.de>,
"Hennerich, Michael" <Michael.Hennerich@analog.com>,
"Frysinger, Michael" <Michael.Frysinger@analog.com>,
"Getz, Robin" <Robin.Getz@analog.com>,
Jean Delvare <khali@linux-fr.org>,
"Trisal, Kalhan" <kalhan.trisal@intel.com>,
"Zhang, Xing Z" <xing.z.zhang@intel.com>,
Ira Snyder <iws@ovro.caltech.edu>
Subject: Re: [RFC] Staging:IIO: New ABI
Date: Wed, 20 Jan 2010 18:14:54 +0100 [thread overview]
Message-ID: <ac3eb2511001200914g601422bfm52f4fc1bdfe66c27@mail.gmail.com> (raw)
In-Reply-To: <4B573501.9090001@jic23.retrosnub.co.uk>
On Wed, Jan 20, 2010 at 17:53, Jonathan Cameron
<kernel@jic23.retrosnub.co.uk> wrote:
>>> What: /sys/.../ring_buffer[m]/ring_event[o]/dev
>>> Description:
>>> Ring buffer m event character device o major:minor numbers.
>>
>> Again, don't bury devices. Or if you are, use a bus, not a class,
>> that's the wrong classification.
> Cool, I'll look into making the change. What we really have here
> is a single conceptual device using a pair or character interfaces. Is a bus
> the right way to handle that?
"bus" and "class" are almost the same regarding the driver core, it
should not make any difference for you. The "class" implementation is
only a very simple case of a "bus" -- just with a pretty much broken
userspace interface. :)
Today, if we would start from scratch, there would be only something
like /sys/subsystem in the layout of today's /sys/bus, and /sys/class,
/sys/bus and /sys/block would not event exist. Tools like udev
intentionally make no difference between them, and do not allow to
distinguish between "class" or "bus". It's just called "susbsystem"
there from the early days on.
The "class" has only a single flat directory in /sys so it can never
be extended with anything custom. No new subsystem should use the
class interface anymore, all should use a "bus". I guess it's time to
document that somewhere. :)
Thanks,
Kay
next prev parent reply other threads:[~2010-01-20 17:15 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-20 15:13 Jonathan Cameron
2010-01-20 15:37 ` Greg KH
2010-01-20 16:40 ` Kay Sievers
2010-01-20 16:53 ` Jonathan Cameron
2010-01-20 17:14 ` Kay Sievers [this message]
2010-01-25 18:52 ` Jonathan Cameron
2010-01-22 20:47 ` Greg KH
2010-01-23 0:14 ` Dmitry Torokhov
2010-01-23 0:31 ` Greg KH
2010-01-26 9:34 ` Dmitry Torokhov
2010-01-26 9:55 ` Hennerich, Michael
2010-01-26 10:11 ` Dmitry Torokhov
2010-01-26 10:25 ` Hennerich, Michael
2010-01-26 10:33 ` Manuel Stahl
2010-01-26 11:10 ` Jonathan Cameron
2010-01-27 7:07 ` Pavel Machek
2010-01-24 11:27 ` Jonathan Cameron
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=ac3eb2511001200914g601422bfm52f4fc1bdfe66c27@mail.gmail.com \
--to=kay.sievers@vrfy.org \
--cc=Michael.Frysinger@analog.com \
--cc=Michael.Hennerich@analog.com \
--cc=Robin.Getz@analog.com \
--cc=greg@kroah.com \
--cc=iws@ovro.caltech.edu \
--cc=jic23@cam.ac.uk \
--cc=kalhan.trisal@intel.com \
--cc=kernel@jic23.retrosnub.co.uk \
--cc=khali@linux-fr.org \
--cc=linux-kernel@vger.kernel.org \
--cc=manuel.stahl@iis.fraunhofer.de \
--cc=xing.z.zhang@intel.com \
/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
all inboxes | Powered by JetHome®