From: Greg KH <greg@kroah.com>
To: Adam Belay <ambx1@netscape.net>
Cc: Patrick Mochel <mochel@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: driverfs: driver interface
Date: Thu, 15 Aug 2002 18:00:58 -0700 [thread overview]
Message-ID: <20020816010058.GA1907@kroah.com> (raw)
In-Reply-To: <3D5C14B4.1090706@netscape.net>
On Thu, Aug 15, 2002 at 08:53:08PM +0000, Adam Belay wrote:
>
> Check this out. Rather than explaining it, I've attached it to this
> email. It might solve this problem. It's based on an idea I stated
> earlier. I haven't quite worked out the details yet and I'm not really
> even sure if it's the best thing to do. I created a sample interface
> comprised of folders and links and then tarred and gzipped it. I'm
> looking forward to some reactions on it. (look in ./driver)
Hm, I think you're missing the whole point about classes. You are
trying to do to the driver code, what will be done with the class
code.
Here's the interaction:
- devices have a driver bound to them
- devices live in the /root tree, showing how they are
interconnected.
- drivers register with a bus (possibly more than one.)
- drivers bind to a device present on a bus, and a class (some
drivers bind to many classes)
- classes interact with userspace somehow, providing the
interface between the device and the user.
As an example:
- A USB keyboard lives in the device tree.
- The USB HID driver binds to the device, and the input class
(both the keyboard and generic subclasses of the input code.)
- the user types keys, and that data gets sent from the USB
code, to the HID driver, to the input core, which then
translates them and sends the info out the /dev node.
Within your model, you are not accounting for the different classes
(input, serial, usb-serial, tty, disk, video, etc.). Take a look at the
documentation for all of this for more information.
> Also I have two questions:
>
> 1.) Is it worth it to remove the bus interface?
No.
> 2.) Should driver management occur through driver model interfaces?
No. Let's leave that the way things are today in this regards.
thanks,
greg k-h
next prev parent reply other threads:[~2002-08-16 1:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-14 22:16 driverfs: [PATCH] remove bus and improve driver management (2.5.30) Adam Belay
2002-08-15 5:04 ` Greg KH
2002-08-15 10:57 ` Adam Belay
[not found] ` <3D5B885E.5000407@netscape.net>
2002-08-15 16:23 ` Greg KH
2002-08-15 16:48 ` Patrick Mochel
2002-08-15 20:53 ` driverfs: driver interface Adam Belay
2002-08-16 1:00 ` Greg KH [this message]
2002-08-15 16:44 ` driverfs: [PATCH] remove bus and improve driver management (2.5.30) Patrick Mochel
2002-08-15 15:35 ` Adam Belay
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=20020816010058.GA1907@kroah.com \
--to=greg@kroah.com \
--cc=ambx1@netscape.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mochel@osdl.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