From: Vojtech Pavlik <vojtech@suse.cz>
To: linux-hotplug@vger.kernel.org
Subject: Re: definition of terms (was: Re: Adding PCMCIA support to the kernel tree -- developers needed.)
Date: Fri, 09 Feb 2001 18:53:25 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-98175346317364@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-98173830701779@msgid-missing>
On Fri, Feb 09, 2001 at 06:03:30PM +0100, Oliver Neukum wrote:
> > > I fear we are being sucked down by semantics.
> >
> > You can't get away from that in design discussions. Gotta
> > eliminate confusions up front.
> >
> > And this application structure is very important. You can't
> > design a "system" without knowing the ways people interact
> > with it ... /dev/NNN is no more than one part of a 1970s
> > solution to a simpler system problem than we have today.
> > We can still use it, but it's not a straightjacket to live in.
> 'interface driver' - a kernel space driver that user space can use to talk to
> a physical devices. There may be more than one interface driver per physical
> device, or in rare cases, none.
>
> 'logical driver' - interface the user space agent may set up, which allows
> the rest of user space to use the services a physical device offers, optional
> logical driver: epson backend of SANE
> interface driver: usbscanner.o
> I introduced the term 'interface driver' because it is needed.
But it's a very problematic one - there is nothing like a driver that
connects directly hardware and userspace. There is always several
drivers inbetween.
In the case of USB scanner:
[hw]--(pci)-->usb-ohci.c--(usb)-->scanner.c--(chardevice)-->[userland]
In many cases there is much more. If there were only direct
[hw]-->xxx.c-->[userland]
drivers, we wouldn't need any hotplug support - kmod and friends would
be enough, because we would then be able to load the modules based on
userland requests. And that is not the case. For USB scanner working, we
need both usb-ohci.c and scanner.c loaded.
So, if you define 'interface driver' as the last driver instance before
a layer (chardevice, netdevice, blockdevice) that interfaces to
userland, then OK. But we need to take the other drivers into our view
as well.
--
Vojtech Pavlik
SuSE Labs
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2001-02-09 18:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-09 17:03 definition of terms (was: Re: Adding PCMCIA support to the kernel tree -- developers needed.) Oliver Neukum
2001-02-09 17:30 ` David Hinds
2001-02-09 18:53 ` Vojtech Pavlik [this message]
2001-02-10 10:30 ` Oliver Neukum
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=marc-linux-hotplug-98175346317364@msgid-missing \
--to=vojtech@suse.cz \
--cc=linux-hotplug@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;
as well as URLs for NNTP newsgroup(s).