other versions
USB_DESCRIPTOR_FILLB(9) | Kernel Mode Gadget API | USB_DESCRIPTOR_FILLB(9) |
NAME¶
usb_descriptor_fillbuf - fill buffer with descriptorsSYNOPSIS¶
int usb_descriptor_fillbuf(void * buf, unsigned buflen, const struct usb_descriptor_header ** src);
ARGUMENTS¶
void * bufBuffer to be filled
unsigned buflen
Size of buf
const struct usb_descriptor_header ** 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.
COPYRIGHT¶
July 2017 | Kernel Hackers Manual 4.11 |