usb_gadget_connect(9)

Submitted by Jeremy
on July 19, 2007 - 1:24am
.\" Title: usb_gadget_connect .\" Author: .\" Generator: DocBook XSL Stylesheets v1.70.1 .\" Date: July 2007 .\" Manual: Kernel Mode Gadget API .\" Source: Kernel Hackers Manual 2.6.22 .\" .TH "USB_GADGET_CONNECT" "9" "July 2007" "Kernel Hackers Manual 2.6.22" "Kernel Mode Gadget API" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .SH "NAME" usb_gadget_connect \- software\-controlled connect to USB host .SH "SYNOPSIS" .HP 23 .BI "int usb_gadget_connect(struct\ usb_gadget\ *\ " "gadget" ");" .SH "ARGUMENTS" .TP 3n \fIgadget\fR the peripheral being connected .SH "DESCRIPTION" .PP Enables the D+ (or potentially D\-) pullup. The host will start enumerating this gadget when the pullup is active and a VBUS session is active (the link is powered). This pullup is always enabled unless \fBusb_gadget_disconnect\fR has been used to disable it. .PP Returns zero on success, else negative errno. .SH "AUTHOR" .PP \fBDavid\fR \fBBrownell\fR .sp -1n .IP "" 3n Author. .SH "COPYRIGHT"