'\" t .\" Title: usb_autopm_get_interface_async .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: USB Core APIs .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "USB_AUTOPM_GET_INTER" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "USB Core APIs" .\" ----------------------------------------------------------------- .\" * 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_autopm_get_interface_async \- increment a USB interface\*(Aqs PM\-usage counter .SH "SYNOPSIS" .HP \w'int\ usb_autopm_get_interface_async('u .BI "int usb_autopm_get_interface_async(struct\ usb_interface\ *\ " "intf" ");" .SH "ARGUMENTS" .PP \fIintf\fR .RS 4 the usb_interface whose counter should be incremented .RE .SH "DESCRIPTION" .PP This routine does much the same thing as \fBusb_autopm_get_interface\fR: It increments \fIintf\fR\*(Aqs usage counter and queues an autoresume request if the device is suspended\&. The differences are that it does not perform any synchronization (callers should hold a private lock and handle all synchronization issues themselves), and it does not autoresume the device directly (it only queues a request)\&. After a successful call, the device may not yet be resumed\&. .PP This routine can run in atomic context\&. .SH "RETURN" .PP 0 on success\&. A negative error code otherwise\&. .SH "COPYRIGHT" .br