'\" t .\" Title: usb_copy_descriptors .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Kernel Mode Gadget API .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "USB_COPY_DESCRIPTORS" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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_copy_descriptors \- copy a vector of USB descriptors .SH "SYNOPSIS" .HP \w'struct\ usb_descriptor_header\ **\ usb_copy_descriptors('u .BI "struct usb_descriptor_header ** usb_copy_descriptors(struct\ usb_descriptor_header\ **\ " "src" ");" .SH "ARGUMENTS" .PP \fIsrc\fR .RS 4 null\-terminated vector to copy .RE .SH "CONTEXT" .PP initialization code, which may sleep .SH "DESCRIPTION" .PP This makes a copy of a vector of USB descriptors\&. Its primary use is to support usb_function objects which can have multiple copies, each needing different descriptors\&. Functions may have static tables of descriptors, which are used as templates and customized with identifiers (for interfaces, strings, endpoints, and more) as needed by a given function instance\&. .SH "AUTHOR" .PP \fBDavid Brownell\fR <\&dbrownell@users.sourceforge.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br