Messages in this thread | | | Date | Thu, 27 Jan 2005 12:02:04 +0100 | From | DervishD <> | Subject | Re: USB API, ioctl's and libusb |
| |
Hi Johannes :)
* Johannes Erdfelt <johannes@erdfelt.com> dixit: > On Wed, Jan 26, 2005, DervishD <lkml@dervishd.net> wrote: > > * Oliver Neukum <oliver@neukum.org> dixit: > > > 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). > ioctl() calls are for userspace only.
I was pretty sure of that. My doubt was the other way round. I was assuming that the functions in <linux/usb.h> were syscalls, that they're not.
> It just so happens there is an ioctl() call that provides an URB like > interface and an ioctl() call that provides a synchronous call to do > a control message.
Didn't knew about that... Thanks a lot for the info!. Is there any documentation available for the ioctl USB interface to the kernel? Any API guide or something like that?
Thanks :)
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... - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |