usb_autopm_get_interface_async(9)

usb_autopm_get_interface_async9

Increment a usb interface's pm-usage counter

Usage

int usb_autopm_get_interface_async(struct usb_interface * intf);

Arguments

intf

the usb_interface whose counter should be incremented

Overview

This routine does much the same thing as usb_autopm_get_interface: It increments intf's 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.

This routine can run in atomic context.

Return

0 on success. A negative error code otherwise.

Releases

4 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0
  2. 7
  3. 8
  4. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.