Drivers in kernel of user space?
Brooks Davis
brooks at one-eyed-alien.net
Fri Aug 19 22:43:13 GMT 2005
On Sat, Aug 20, 2005 at 02:31:54AM +0400, Karolis Tamutis wrote:
> Should drivers for an usb device (or a series of devices) be developed
> in kernel space or in user space, now that we have such cross platform
> ported libraries as libusb? What's your opinion.
It depends. :) If your device maps to one of the standard kernel
services like network controllers, disk or tape based storage, tty
device, etc, you mostly likely want to implement in kernel unless there
is an appropriate interface to provide the kernel interface from
userland and performance isn't critical (for instance, if_tap provides
an ethernet like device with a userland process being responsible for
actually sending the packets.) For stuff that doesn't fit into this
category a userland solution may well be better since you get many
platforms for free.
-- Brooks
--
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20050819/069e8165/attachment.bin
More information about the freebsd-usb
mailing list