Re: USB API, ioctl's and libusb

2005-01-28 Thread DervishD
Hi Johannes :) * Johannes Erdfelt <[EMAIL PROTECTED]> dixit: > On Thu, Jan 27, 2005, DervishD <[EMAIL PROTECTED]> wrote: > > 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 somet

Re: USB API, ioctl's and libusb

2005-01-27 Thread Johannes Erdfelt
On Thu, Jan 27, 2005, DervishD <[EMAIL PROTECTED]> wrote: > 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? You can use the kernel sources to see how to use it. JE

Re: USB API, ioctl's and libusb

2005-01-27 Thread DervishD
Hi Johannes :) * Johannes Erdfelt <[EMAIL PROTECTED]> dixit: > On Wed, Jan 26, 2005, DervishD <[EMAIL PROTECTED]> wrote: > > * Oliver Neukum <[EMAIL PROTECTED]> dixit: > > > You are supposed to use libusb. > > That's irrelevant, the program I was trying to fix uses libusb. > > My questio

Re: USB API, ioctl's and libusb

2005-01-26 Thread Johannes Erdfelt
On Wed, Jan 26, 2005, DervishD <[EMAIL PROTECTED]> wrote: > * 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, or ioctl's? Is the ioctl interface > > > depre

Re: [Linux-usb-users] Re: USB API, ioctl's and libusb

2005-01-26 Thread Alan Stern
On Wed, 26 Jan 2005, DervishD wrote: > 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

Re: [Linux-usb-users] Re: USB API, ioctl's and libusb

2005-01-26 Thread DervishD
Hi Alan :) * Alan Stern <[EMAIL PROTECTED]> dixit: > > 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

Re: USB API, ioctl's and libusb

2005-01-26 Thread DervishD
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, or ioctl's? Is the ioctl interface > > deprecated in any way? In the "Programming guide for Li

Re: USB API, ioctl's and libusb

2005-01-26 Thread Oliver Neukum
Am Mittwoch, 26. Januar 2005 13:20 schrieb DervishD: >     My question is: which interface should be used by user space > applications, 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

USB API, ioctl's and libusb

2005-01-26 Thread DervishD
Hi everybody :) I've been solving a USB problem related to a digital photo camera, and I've noticed that 'libusb' uses a ioctl interface to the USB kernel system. In fact it implements 'usb_control_msg()' using ioctl's. On the other hand, the kernel itself (I'm talking about 2.4.29) provid