USB_DESCRIPTOR_FILLB(9) Kernel Mode Gadget API USB_DESCRIPTOR_FILLB(9)NAMEusb_descriptor_fillbuf - fill buffer with descriptors
SYNOPSIS
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.
DESCRIPTION
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.
AUTHOR
David Brownell <dbrownell@users.sourceforge.net>
Author.
COPYRIGHTKernel Hackers Manual 2.6. November 2013 USB_DESCRIPTOR_FILLB(9)