Hi Oliver :)

 * Oliver Neukum <[EMAIL PROTECTED]> dixit:
> Am Mittwoch, 26. Januar 2005 13:20 schrieb DervishD:
> > � � My question is: which interface should be used by user space
> > applications, <linux/usb.h> or ioctl's? Is the ioctl interface
> > deprecated in any way? In the "Programming guide for Linux USB Device
> > Drivers", located in http://usb.in.tum.de/usbdoc/, I can't find ioctl
> > interface references :?
> You are supposed to use libusb.

    That's irrelevant, the program I was trying to fix uses libusb.
My question is about the preferred kernel interface, 'cause I don't
know if it's the ioctl one or the URB one (well, I'm calling 'URB'
interface the API that is implemented using URB's inside the kernel).

    BTW, and judging from the program I've read, there are lots of
operations that must be done using 'usb_control_msg', and libusb
implements that function with exactly the same interface as the
kernel. The only difference is that libusb uses ioctl and the kernel
implements the function using URB's. IMHO libusb doesn't provide a
cleaner API, the only advantage of libusb is portability. Anyway,
I've not used it enough to judge, I'm more concerned about kernel USB
interface, not libusb one.

    Thanks anyway :)

    Ra�l N��ez de Arenas Coronado

-- 
Linux Registered User 88736
http://www.dervishd.net & http://www.pleyades.net/
It's my PC and I'll cry if I want to...


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to