'\" t .\" Title: usb_alloc_streams .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Host Controller APIs .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "USB_ALLOC_STREAMS" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Host Controller APIs" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" usb_alloc_streams \- allocate bulk endpoint stream IDs\&. .SH "SYNOPSIS" .HP \w'int\ usb_alloc_streams('u .BI "int usb_alloc_streams(struct\ usb_interface\ *\ " "interface" ", struct\ usb_host_endpoint\ **\ " "eps" ", unsigned\ int\ " "num_eps" ", unsigned\ int\ " "num_streams" ", gfp_t\ " "mem_flags" ");" .SH "ARGUMENTS" .PP \fIinterface\fR .RS 4 alternate setting that includes all endpoints\&. .RE .PP \fIeps\fR .RS 4 array of endpoints that need streams\&. .RE .PP \fInum_eps\fR .RS 4 number of endpoints in the array\&. .RE .PP \fInum_streams\fR .RS 4 number of streams to allocate\&. .RE .PP \fImem_flags\fR .RS 4 flags hcd should use to allocate memory\&. .RE .SH "DESCRIPTION" .PP Sets up a group of bulk endpoints to have \fInum_streams\fR stream IDs available\&. Drivers may queue multiple transfers to different stream IDs, which may complete in a different order than they were queued\&. .SH "RETURN" .PP On success, the number of allocated streams\&. On failure, a negative error code\&. .SH "COPYRIGHT" .br