.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "USB_TRYLOCK_DEVICE" "9" "09 October 2005" "" "" .SH NAME usb_trylock_device \- attempt to acquire the lock for a usb device structure .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int usb_trylock_device (struct usb_device * \fIudev\fB); \fR .SH "ARGUMENTS" .TP \fB\fIudev\fB\fR device that's being locked .SH "DESCRIPTION" .PP 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 \fBusb_lock_all_devices\fR\&. .PP Returns 1 if successful, 0 if contention.