usb_descriptor_fillbuf(9)

usb_descriptor_fillbuf9

Fill buffer with descriptors

Usage

int usb_descriptor_fillbuf(void * buf, unsigned buflen, const struct usb_descriptor_header ** src);

Arguments

buf

Buffer to be filled

buflen

Size of buf

src

Array of descriptor pointers, terminated by null pointer.

Overview

Copies descriptors into the buffer, returning the length or a negative error code if they can't all be copied. Useful when assembling descriptors for an associated set of interfaces used as part of configuring a composite device; or in other cases where sets of descriptors need to be marshaled.

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

Author

David Brownell <[email protected]>

Author.

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