usb_free_streams
Prev | Chapter 6. Host Controller APIs | Next

## 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

On success, the number of allocated streams. On failure, a negative error code.

Prev | Up | Next
usb_alloc_streams | Home | usb_hcd_resume_root_hub