'\" t .\" Title: usb_gadget_vbus_connect .\" 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_VBUS_CONN" "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_vbus_connect \- Notify controller that VBUS is powered .SH "SYNOPSIS" .HP \w'int\ usb_gadget_vbus_connect('u .BI "int usb_gadget_vbus_connect(struct\ usb_gadget\ *\ " "gadget" ");" .SH "ARGUMENTS" .PP \fIgadget\fR .RS 4 The device which now has VBUS power\&. .RE .SH "CONTEXT" .PP can sleep .SH "DESCRIPTION" .PP This call is used by a driver for an external transceiver (or GPIO) that detects a VBUS power session starting\&. Common responses include resuming the controller, activating the D+ (or D\-) pullup to let the host detect that a USB device is attached, and starting to draw power (8mA or possibly more, especially after SET_CONFIGURATION)\&. .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