'\" t .\" Title: usb_descriptor_fillbuf .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: March 2017 .\" Manual: Kernel Mode Gadget API .\" Source: Kernel Hackers Manual 4.10.7 .\" Language: English .\" .TH "USB_DESCRIPTOR_FILLB" "9" "March 2017" "Kernel Hackers Manual 4\&.10\&" "Kernel Mode Gadget API" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" usb_descriptor_fillbuf \- fill buffer with descriptors .SH "SYNOPSIS" .HP \w'int\ usb_descriptor_fillbuf('u .BI "int usb_descriptor_fillbuf(void\ *\ " "buf" ", unsigned\ " "buflen" ", const\ struct\ usb_descriptor_header\ **\ " "src" ");" .SH "ARGUMENTS" .PP \fIbuf\fR .RS 4 Buffer to be filled .RE .PP \fIbuflen\fR .RS 4 Size of buf .RE .PP \fIsrc\fR .RS 4 Array of descriptor pointers, terminated by null pointer\&. .RE .SH "DESCRIPTION" .PP Copies descriptors into the buffer, returning the length or a negative error code if they can\*(Aqt 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\&. .SH "AUTHOR" .PP \fBDavid Brownell\fR <\&dbrownell@users.sourceforge.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br