SuSE 11.3 - man page for usb_lock_device_for_reset (suse section 9)
|Linux & Unix Commands - Search Man Pages
USB_LOCK_DEVICE_FOR_(9) USB Core APIs USB_LOCK_DEVICE_FOR_(9)
usb_lock_device_for_reset - cautiously acquire the lock for a usb device structure
int usb_lock_device_for_reset(struct usb_device * udev,
const struct usb_interface * iface);
device that's being locked
interface bound to the driver making the request (optional)
Attempts to acquire the device lock, but fails if the device is NOTATTACHED or SUSPENDED,
or if iface is specified and the interface is neither BINDING nor BOUND. Rather than
sleeping to wait for the lock, the routine polls repeatedly. This is to prevent deadlock
with disconnect; in some drivers (such as usb-storage) the disconnect or suspend method
will block waiting for a device reset to complete.
Returns a negative error code for failure, otherwise 0.
Kernel Hackers Manual 2.6. July 2010 USB_LOCK_DEVICE_FOR_(9)
All times are GMT -4. The time now is 12:44 PM.