centos man page for usb_lock_device_for_reset

Query: usb_lock_device_for_reset

OS: centos

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

USB_LOCK_DEVICE_FOR_(9) 					   USB Core APIs					   USB_LOCK_DEVICE_FOR_(9)

NAME
usb_lock_device_for_reset - cautiously acquire the lock for a usb device structure
SYNOPSIS
int usb_lock_device_for_reset(struct usb_device * udev, const struct usb_interface * iface);
ARGUMENTS
udev device that's being locked iface interface bound to the driver making the request (optional)
DESCRIPTION
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.
RETURN
A negative error code for failure, otherwise 0.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 USB_LOCK_DEVICE_FOR_(9)
Related Man Pages
struct_usb_interface(9) - centos
usb_control_msg(9) - centos
usb_queue_reset_device(9) - centos
usb_sg_init(9) - centos
struct_usb_driver(9) - suse
Similar Topics in the Unix Linux Community
Best performance UNIX just for HOST Virtualization?
CentOS7 restoring file capabilities
Unsure why access time on a directory change isn't changing
[TIP] Processing YAML files with yq
Please Welcome Dave Munro to the Moderator Team!