1USB_AUTOPM_GET_INTER(9) USB Core APIs USB_AUTOPM_GET_INTER(9)
2
3
4
6 usb_autopm_get_interface_async - increment a USB interface´s PM-usage
7 counter
8
10 int usb_autopm_get_interface_async(struct usb_interface * intf);
11
13 intf
14 the usb_interface whose counter should be incremented
15
17 This routine does much the same thing as usb_autopm_get_interface: it
18 increments intf´s usage counter and queues an autoresume request if the
19 result is > 0. The differences are that it does not acquire the
20 device´s pm_mutex (callers must handle all synchronization issues
21 themselves), and it does not autoresume the device directly (it only
22 queues a request). After a successful call, the device will generally
23 not yet be resumed.
24
25 This routine can run in atomic context.
26
28Kernel Hackers Manual 2.6. June 2019 USB_AUTOPM_GET_INTER(9)