Date: Fri, 19 Aug 2005 15:43:12 -0700 From: Brooks Davis <brooks@one-eyed-alien.net> To: Karolis Tamutis <karolis.t@gmail.com> Cc: freebsd-usb@freebsd.org Subject: Re: Drivers in kernel of user space? Message-ID: <20050819224312.GE17019@odin.ac.hmc.edu> In-Reply-To: <6f896f9a05081915315fc8f82d@mail.gmail.com> References: <6f896f9a05081915315fc8f82d@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--sfyO1m2EN8ZOtJL6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 --=20 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 --sfyO1m2EN8ZOtJL6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDBmCAXY6L6fI4GtQRAv1ZAJ9QyLUVUtU6WSUeh7AN/pRic/dIvQCfZS+2 r/47HvIpbaNmE/XF/CA49nE= =j3VG -----END PGP SIGNATURE----- --sfyO1m2EN8ZOtJL6--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050819224312.GE17019>