---
name: "usb_find_interface"
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_find_interface"
---

# usb\_find\_interface(9)

find usb\_interface pointer for driver and device

## NAME

usb\_find\_interface - find usb\_interface pointer for driver and device

## SYNOPSIS

**struct usb\_interface \* usb\_find\_interface(struct usb\_driver \*** *drv***, int** *minor***);**

## ARGUMENTS

*drv*

the driver whose current configuration is considered

*minor*

the minor number of the desired device

## DESCRIPTION

This walks the bus device list and returns a pointer to the interface with the matching minor and driver. Note, this only works for devices that share the USB major number.

## RETURN

A pointer to the interface with the matching major and *minor*.

## COPYRIGHT
