SysTutorials

Linux Manual Pages › Section 9

usb_free_streams(9)

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