BlackBerry (Re: using libusb)

Mikhail Teterin mi+mill at aldan.algebra.com
Wed Jan 9 11:35:39 PST 2008


середа 09 січень 2008 01:34 по, Hans Petter Selasky Ви написали:
> My plan is to extend /dev/usbX so that it becomes a so-called clonable
> device. When you open up "/dev/usb0.2.3" for example, you open up the
> device having index 2 on USB bus 0 and endpoint 3. This will need some
> modifications in libusb. Ugen will still be there, but I plan to move the
> functionality over to "usb.c". Accessing endpoints will then work
> regardless of what drivers are hooked on.

I must admit, that /dev/umass2 looks better than /dev/usb0.2, but I don't 
really care :-) Other than that you will, probably, have to take over 
maintainership of the libusb port... Maybe, even to the point of bringing its 
relevant bits and pieces into the src-tree.

There is simply too much stuff being written for Linux that uses the libusb 
API to ignore it... It is bad enough, that we can't have video4linux 
support :(

> Some open problems that needs to be resolved:
>
> Should we allow parallell access to USB interfaces?

Not sure, what you mean. Parallel access between multiple interfaces to the 
same device (umass and ugen access to the same blackberry), or parallel 
access between two different user-space processes?

> And what about rights management?

devfs.conf?

 -mi


More information about the freebsd-usb mailing list