---
name: "usb_get_intf"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/usb_get_intf"
---

# usb\_get\_intf(9)

increments the reference count of the usb interface structure

## NAME

usb\_get\_intf - increments the reference count of the usb interface structure

## SYNOPSIS

**struct usb\_interface \* usb\_get\_intf(struct usb\_interface \*** *intf***);**

## ARGUMENTS

*intf*

the interface being referenced

## DESCRIPTION

Each live reference to a interface must be refcounted.

Drivers for USB interfaces should normally record such references in their **probe** methods, when they bind to an interface, and release them by calling **usb\_put\_intf**, in their **disconnect** methods.

## RETURN

A pointer to the interface with the incremented reference counter.

## COPYRIGHT
