1USB_AUTOPM_GET_INTER(9)          USB Core APIs         USB_AUTOPM_GET_INTER(9)
2
3
4

NAME

6       usb_autopm_get_interface - increment a USB interface's PM-usage counter
7

SYNOPSIS

9       int usb_autopm_get_interface(struct usb_interface * intf);
10

ARGUMENTS

12       intf
13           the usb_interface whose counter should be incremented
14

DESCRIPTION

16       This routine should be called by an interface driver when it wants to
17       use intf and needs to guarantee that it is not suspended. In addition,
18       the routine prevents intf from being autosuspended subsequently. (Note
19       that this will not prevent suspend events originating in the PM core.)
20       This prevention will persist until usb_autopm_put_interface is called
21       or intf is unbound. A typical example would be a character-device
22       driver when its device file is opened.
23
24       intf's usage counter is incremented to prevent subsequent autosuspends.
25       However if the autoresume fails then the counter is re-decremented.
26
27       This routine can run only in process context.
28
30Kernel Hackers Manual 2.6.       November 2011         USB_AUTOPM_GET_INTER(9)
Impressum