---
name: "usb_find_alt_setting"
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_alt_setting"
---

# usb\_find\_alt\_setting(9)

Given a configuration, find the alternate setting for the given interface.

## NAME

usb\_find\_alt\_setting - Given a configuration, find the alternate setting for the given interface.

## SYNOPSIS

**struct usb\_host\_interface \* usb\_find\_alt\_setting(struct usb\_host\_config \*** *config***, unsigned int** *iface\_num***, unsigned int** *alt\_num***);**

## ARGUMENTS

*config*

the configuration to search (not necessarily the current config).

*iface\_num*

interface number to search in

*alt\_num*

alternate interface setting number to search for.

## DESCRIPTION

Search the configuration's interface cache for the given alt setting.

## RETURN

The alternate setting, if found. **NULL** otherwise.

## COPYRIGHT
