1USB_RESET_DEVICE(9)              USB Core APIs             USB_RESET_DEVICE(9)
2
3
4

NAME

6       usb_reset_device - warn interface drivers and perform a USB port reset
7

SYNOPSIS

9       int usb_reset_device(struct usb_device * udev);
10

ARGUMENTS

12       udev
13           device to reset (not in SUSPENDED or NOTATTACHED state)
14

DESCRIPTION

16       Warns all drivers bound to registered interfaces (using their pre_reset
17       method), performs the port reset, and then lets the drivers know that
18       the reset is over (using their post_reset method).
19
20       Return value is the same as for usb_reset_and_verify_device.
21
22       The caller must own the device lock. For example, it's safe to use this
23       from a driver probe routine after downloading new firmware. For calls
24       that might not occur during probe, drivers should lock the device using
25       usb_lock_device_for_reset.
26
27       If an interface is currently being probed or disconnected, we assume
28       its driver knows how to handle resets. For all other interfaces, if the
29       driver doesn't have pre_reset and post_reset methods then we attempt to
30       unbind it and rebind afterward.
31
33Kernel Hackers Manual 2.6.       November 2011             USB_RESET_DEVICE(9)
Impressum