'\" t .\" Title: usb_gadget_unregister_driver .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Kernel Mode Gadget API .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "USB_GADGET_UNREGISTE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Kernel Mode Gadget API" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" usb_gadget_unregister_driver \- unregister a gadget driver .SH "SYNOPSIS" .HP \w'int\ usb_gadget_unregister_driver('u .BI "int usb_gadget_unregister_driver(struct\ usb_gadget_driver\ *\ " "driver" ");" .SH "ARGUMENTS" .PP \fIdriver\fR .RS 4 the driver being unregistered .RE .SH "CONTEXT" .PP can sleep .SH "DESCRIPTION" .PP Call this in your gadget driver\*(Aqs 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 \fBdisconnect\fR\&. The driver is also requested to \fBunbind\fR and clean up any device state, before this procedure finally returns\&. It\*(Aqs expected that the \fBunbind\fR functions will in in exit sections, so may not be linked in some kernels\&. .SH "AUTHOR" .PP \fBDavid Brownell\fR <\&dbrownell@users.sourceforge.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br