Provided by: linux-doc-2.6.15_2.6.15-23.39_all bug

NAME

       usb_trylock_device  -  attempt  to  acquire  the  lock for a usb device
       structure

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.