'\" t .\" Title: usb_autopm_put_interface .\" 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_PUT_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_put_interface \- decrement a USB interface\*(Aqs PM\-usage counter .SH "SYNOPSIS" .HP \w'void\ usb_autopm_put_interface('u .BI "void usb_autopm_put_interface(struct\ usb_interface\ *\ " "intf" ");" .SH "ARGUMENTS" .PP \fIintf\fR .RS 4 the usb_interface whose counter should be decremented .RE .SH "DESCRIPTION" .PP This routine should be called by an interface driver when it is finished using \fIintf\fR and wants to allow it to autosuspend\&. A typical example would be a character\-device driver when its device file is closed\&. .PP The routine decrements \fIintf\fR\*(Aqs usage counter\&. When the counter reaches 0, a delayed autosuspend request for \fIintf\fR\*(Aqs device is attempted\&. The attempt may fail (see \fBautosuspend_check\fR)\&. .PP This routine can run only in process context\&. .SH "COPYRIGHT" .br