1USB_ALLOC_STREAMS(9)         Host Controller APIs         USB_ALLOC_STREAMS(9)
2
3
4

NAME

6       usb_alloc_streams - allocate bulk endpoint stream IDs.
7

SYNOPSIS

9       int usb_alloc_streams(struct usb_interface * interface,
10                             struct usb_host_endpoint ** eps,
11                             unsigned int num_eps, unsigned int num_streams,
12                             gfp_t mem_flags);
13

ARGUMENTS

15       interface
16           alternate setting that includes all endpoints.
17
18       eps
19           array of endpoints that need streams.
20
21       num_eps
22           number of endpoints in the array.
23
24       num_streams
25           number of streams to allocate.
26
27       mem_flags
28           flags hcd should use to allocate memory.
29

DESCRIPTION

31       Sets up a group of bulk endpoints to have num_streams stream IDs
32       available. Drivers may queue multiple transfers to different stream
33       IDs, which may complete in a different order than they were queued.
34

RETURN

36       On success, the number of allocated streams. On failure, a negative
37       error code.
38
40Kernel Hackers Manual 3.10         June 2019              USB_ALLOC_STREAMS(9)
Impressum