struct_usb_sg_request(9)

struct_usb_sg_request9

Support for scatter/gather i/o

Usage

struct usb_sg_request {
  int status;
  size_t bytes;
};  

Members

status

zero indicates success, else negative errno

bytes

counts bytes transferred.

Overview

These requests are initialized using usb_sg_init, and then are used as request handles passed to usb_sg_wait or usb_sg_cancel. Most members of the request object aren't for driver access.

The status and bytecount values are valid only after usb_sg_wait returns. If the status is zero, then the bytecount matches the total from the request.

After an error completion, drivers may need to clear a halt condition on the endpoint.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.