carta
usb_gadget_unregister_driver(9)

usb_gadget_unregister_driver9

Unregister a gadget driver

Usage

int usb_gadget_unregister_driver(struct usb_gadget_driver * driver);

Arguments

driver

the driver being unregistered

Context

can sleep

Overview

Call this in your gadget driver's module cleanup function, to tell the underlying usb controller that your driver is going away. If the controller is connected to a USB host, it will first disconnect. The driver is also requested to unbind and clean up any device state, before this procedure finally returns. It's expected that the unbind functions will in in exit sections, so may not be linked in some kernels.

History

  • Debian 9 (Stretch): the text shown here
  • Debian 8 (Jessie)
  • Debian 7 (Wheezy)
  • Debian 6.0 (Squeeze)
  • Debian 5.0 (Lenny)
  • Debian 4.0 (Etch)

Author

David Brownell <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.