Skip to content

Commit 94af122

Browse files
Sarah Sharpgregkh
authored andcommitted
USB: Add stream ID field to struct urb.
Bulk endpoint streams were added in the USB 3.0 specification. Streams allow a device driver to overload a bulk endpoint so that multiple transfers can be queued at once. Add a new field, stream_id, to struct urb so that USB 3.0 drivers can specify which stream they want the URB to be queued to. Signed-off-by: Sarah Sharp <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 22ad1e7 commit 94af122

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/usb.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,7 @@ struct urb {
11961196
struct usb_device *dev; /* (in) pointer to associated device */
11971197
struct usb_host_endpoint *ep; /* (internal) pointer to endpoint */
11981198
unsigned int pipe; /* (in) pipe information */
1199+
unsigned int stream_id; /* (in) stream ID */
11991200
int status; /* (return) non-ISO status */
12001201
unsigned int transfer_flags; /* (in) URB_SHORT_NOT_OK | ...*/
12011202
void *transfer_buffer; /* (in) associated data buffer */

0 commit comments

Comments
 (0)