... except that this code does NOT follow those conventions, as
I've argued. And "client" is explicitly contrary to the USB spec,
which uses that as a host-side phrase (though not often).
In fact if you look at USB control messages, they're baby RPCs ...
which always go from "client" (USB host, which initiates) to "server"
(USB device, responds with status and/or data). I'd find "client"
to be wrong, not just confusing (like the X11 usage of that word).
> However 99% of kernel developers will never read that spec, and 100% of
> users never will, and the name "devices" failed to convey any good
> meaning to the first person that saw the tree outside of the USB
> developers, so changing the name to "client" makes a lot more sense :)
The USB "host" vs "device" naming convention is pretty deeply
ingrained in USB specs, but only "device" is end-user-visible.
At Fry's you buy not a "USB client", but a "USB device". I think
you could buy a "USB adapter" (PCI card) though.
I think that from the Linux perspective, "device" is itself ambiguous.
In a USB stack with Linux everywhere (in the host side and in the
device side), I count at least four kinds of code that would in some
context be called a "device driver":
Host side: "client driver" (USB spec term)
interacts with "host controller driver" [HCD] (ditto)
--- traffic goes over USB ---
Device side: "device controller driver" (not a USB spec term) (*)
interacts with "function driver" (USB spec term)
Today one tends to talk about a "USB device driver" rather than
a client driver, although many of us have devices that use two
drivers. (PCI analogy: one PCI card can have many functions,
each with its own driver) Most HCDs are PCI device drivers.
(Although there are other HCDs Linux deals with.)
I wish I had a better term to suggest than "USB device", but I'd
sure prefer to avoid "client". I've spent too many years doing
networking applications for that to make sense to me. What
would it take to make "device" less ambiguous?
- Dave
(*) The USB spec needlessly avoided using symmetrical terminology
here. They did talk about a "bus interface" layer but it shows up on
both host side and device side ... I think they underspecified things
on the device side to accomodate implementation variability. In
fact the bus interface on the device side is in many ways simpler
than on the host side: it doesn't have to multiplex i/o to devices.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/