Re: Is libusb dead?

Sarah Bailey <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <20070417180926.GA6053@localdomain>
On Mon, Apr 16, 2007 at 06:38:15PM -0400, Adam Kropelin wrote:
> Sarah Bailey wrote:
> >On Tue, Apr 03, 2007 at 10:58:06AM -0400, Mike Panetta wrote:
> >>I just went to the sourceforge page to see if there was a newer 
> >>version
> >>supporting asynch io for more efficient bulk xfers on high speed
> >>devices, but it looks like there has not been any development in over 
> >>a
> >>year, even in CVS.  Is the project dead?  Is there now a different 
> >>way
> >>to do USB drivers from user-space?
> >
> >There will be a new way to write USB drivers from userspace in a 
> >couple
> >months.  usbfs is slowly being replaced by a new usb file system,
> >usbfs2.  Eventually, user-space USB drivers will just use usbfs2, and
> >libusb won't be needed anymore.
> 
> I disagree. Either you misunderstand libusb or I misunderstand usbfs2. I 
> suspect the former ;)
> 
> As I understand it, usbfs2 is a "simpler" API than the current usbfs.

Simplier, and a little better designed than usbfs.  It represents
endpoints as separate files, so the program can issue read and write
calls rather than messing with ioctls.

> That's nice, but the complexity of usbfs is not the only reason libusb 
> exists. In fact I'd argue  it's not even the most important reason. What 
> *is* the most important reason? Cross-platform compatibility.

Yes, libusb is important for cross-platform compatibility.  libusb could
be reworked to use usbfs2.  However, it seems like an unnecessary abstraction
layer if you just want to write a userspace Linux USB driver (which is
what I thought Mike was asking about).

Sarah

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGJQ1WRqNbFWK10kwRAjFmAKDH7cQkWw47N8zHoCMf4kn5ghl0jACgwCZR
9do4rjlUOORHHtlQHbj5SAo=
=L3Oc
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.