'\" t .\" Title: usb_gadget_disconnect .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Kernel Mode Gadget API .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "USB_GADGET_DISCONNEC" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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_disconnect \- software\-controlled disconnect from USB host .SH "SYNOPSIS" .HP \w'int\ usb_gadget_disconnect('u .BI "int usb_gadget_disconnect(struct\ usb_gadget\ *\ " "gadget" ");" .SH "ARGUMENTS" .PP \fIgadget\fR .RS 4 the peripheral being disconnected .RE .SH "DESCRIPTION" .PP Disables the D+ (or potentially D\-) pullup, which the host may see as a disconnect (when a VBUS session is active)\&. Not all systems support software pullup controls\&. .PP This routine may be used during the gadget driver \fBbind\fR call to prevent the peripheral from ever being visible to the USB host, unless later \fBusb_gadget_connect\fR is called\&. For example, user mode components may need to be activated before the system can talk to hosts\&. .PP Returns zero on success, else negative errno\&. .SH "AUTHOR" .PP \fBDavid Brownell\fR <\&dbrownell@users.sourceforge.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br