---
name: "usb_autopm_set_interface"
section: "9"
platform: "linux"
package: "linux-manual-2.6.32"
version: "2.6.32-48squeeze6"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/usb_autopm_set_interface"
---

# usb\_autopm\_set\_interface(9)

set a USB interface's autosuspend state

## NAME

usb\_autopm\_set\_interface - set a USB interface's autosuspend state

## SYNOPSIS

**int usb\_autopm\_set\_interface(struct usb\_interface \*** *intf***);**

## ARGUMENTS

*intf*

the usb\_interface whose state should be set

## DESCRIPTION

This routine sets the autosuspend state of *intf*'s device according to *intf*'s usage counter, which the caller must have set previously. If the counter is \<= 0, the device is autosuspended (if it isn't already suspended and if nothing else prevents the autosuspend). If the counter is \> 0, the device is autoresumed (if it isn't already awake).

## COPYRIGHT
