public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* USB API, ioctl's and libusb
@ 2005-01-26 12:20 DervishD
  2005-01-26 13:40 ` Oliver Neukum
  0 siblings, 1 reply; 9+ messages in thread
From: DervishD @ 2005-01-26 12:20 UTC (permalink / raw)
  To: Linux-kernel; +Cc: linux-usb-users

    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) provides an API in <linux/usb.h> that implements too
'usb_control_msg()' using URB's.

    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 :?

    Thanks a lot in advance :)

    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...

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-01-28 10:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-26 12:20 USB API, ioctl's and libusb DervishD
2005-01-26 13:40 ` Oliver Neukum
2005-01-26 16:38   ` DervishD
2005-01-26 21:24     ` Johannes Erdfelt
2005-01-27 11:02       ` DervishD
2005-01-27 22:08         ` Johannes Erdfelt
2005-01-28 10:22           ` DervishD
2005-01-26 22:15     ` [Linux-usb-users] " Alan Stern
2005-01-26 23:57       ` DervishD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox