USB_TRYLOCK_DEVICE
Section: (9)
Updated: 09 October 2005
Index
Return to Main Contents
NAME
usb_trylock_device - attempt to acquire the lock for a usb device structure
SYNOPSIS
"SYNOPSIS"
int usb_trylock_device (struct usb_device * udev);
ARGUMENTS
- udev
-
device that's being locked
DESCRIPTION
Don't use this routine if you already hold a device lock;
use down_trylock(&udev->serialize) instead.
This is necessary for proper interaction with usb_lock_all_devices.
Returns 1 if successful, 0 if contention.
Index
- NAME
-
- SYNOPSIS
-
- ARGUMENTS
-
- DESCRIPTION
-
This document was created by
man2html,
using the manual pages.
Time: 00:02:58 GMT, October 09, 2005