usb_autopm_put_interface(9)

usb_autopm_put_interface9

Decrement a usb interface's pm-usage counter

Usage

void usb_autopm_put_interface(struct usb_interface * intf);

Arguments

intf

the usb_interface whose counter should be decremented

Overview

This routine should be called by an interface driver when it is finished using intf and wants to allow it to autosuspend. A typical example would be a character-device driver when its device file is closed.

The routine decrements intf's usage counter. When the counter reaches 0, a delayed autosuspend request for intf's device is attempted. The attempt may fail (see autosuspend_check).

This routine can run only in process context.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

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