'\" t .\" Title: usb_gadget_wakeup .\" 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_WAKEUP" "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_wakeup \- tries to wake up the host connected to this gadget .SH "SYNOPSIS" .HP \w'int\ usb_gadget_wakeup('u .BI "int usb_gadget_wakeup(struct\ usb_gadget\ *\ " "gadget" ");" .SH "ARGUMENTS" .PP \fIgadget\fR .RS 4 controller used to wake up the host .RE .SH "DESCRIPTION" .PP Returns zero on success, else negative error code if the hardware doesn\*(Aqt support such attempts, or its support has not been enabled by the usb host\&. Drivers must return device descriptors that report their ability to support this, or hosts won\*(Aqt enable it\&. .PP This may also try to use SRP to wake the host and start enumeration, even if OTG isn\*(Aqt otherwise in use\&. OTG devices may also start remote wakeup even when hosts don\*(Aqt explicitly enable it\&. .SH "AUTHOR" .PP \fBDavid Brownell\fR <\&dbrownell@users.sourceforge.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br