1STRUCT USB_SG_REQUES(9) Host-Side Data Types and Macro STRUCT USB_SG_REQUES(9)
2
3
4
6 struct_usb_sg_request - support for scatter/gather I/O
7
9 struct usb_sg_request {
10 int status;
11 size_t bytes;
12 };
13
15 status
16 zero indicates success, else negative errno
17
18 bytes
19 counts bytes transferred.
20
22 These requests are initialized using usb_sg_init, and then are used as
23 request handles passed to usb_sg_wait or usb_sg_cancel. Most members of
24 the request object aren't for driver access.
25
26 The status and bytecount values are valid only after usb_sg_wait
27 returns. If the status is zero, then the bytecount matches the total
28 from the request.
29
30 After an error completion, drivers may need to clear a halt condition
31 on the endpoint.
32
34Kernel Hackers Manual 3.10 June 2019 STRUCT USB_SG_REQUES(9)