---
name: "usb_free_streams"
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_free_streams"
---

# usb\_free\_streams(9)

free bulk endpoint stream IDs.

## NAME

usb\_free\_streams - free bulk endpoint stream IDs.

## SYNOPSIS

**int usb\_free\_streams(struct usb\_interface \*** *interface***, struct usb\_host\_endpoint \*\*** *eps***, unsigned int** *num\_eps***, gfp\_t** *mem\_flags***);**

## ARGUMENTS

*interface*

alternate setting that includes all endpoints.

*eps*

array of endpoints to remove streams from.

*num\_eps*

number of endpoints in the array.

*mem\_flags*

flags hcd should use to allocate memory.

## DESCRIPTION

Reverts a group of bulk endpoints back to not using stream IDs. Can fail if we are given bad arguments, or HCD is broken.

## RETURN

0 on success. On failure, a negative error code.

## COPYRIGHT
