usb_autopm_put_interface_async(9)

usb_autopm_put_interface_async9

Decrement a usb interface's pm-usage counter

Usage

void usb_autopm_put_interface_async(struct usb_interface * intf);

Arguments

intf

the usb_interface whose counter should be decremented

Overview

This routine does much the same thing as usb_autopm_put_interface: It decrements intf's usage counter and schedules a delayed autosuspend request if the counter is <= 0. The difference is that it does not perform any synchronization; callers should hold a private lock and handle all synchronization issues themselves.

Typically a driver would call this routine during an URB's completion handler, if no more URBs were pending.

This routine can run in atomic context.

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.