1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>usb_copy_descriptors</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="USB Gadget API for Linux"><link rel="up" href="utils.html" title="Optional Utilities"><link rel="prev" href="API-usb-gadget-config-buf.html" title="usb_gadget_config_buf"><link rel="next" href="composite.html" title="Composite Device Framework"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">usb_copy_descriptors</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-usb-gadget-config-buf.html">Prev</a>&#160;</td><th width="60%" align="center">Optional Utilities</th><td width="20%" align="right">&#160;<a accesskey="n" href="composite.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-usb-copy-descriptors"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>usb_copy_descriptors &#8212; 
2     copy a vector of USB descriptors
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">struct usb_descriptor_header ** <b class="fsfunc">usb_copy_descriptors </b>(</code></td><td>struct usb_descriptor_header ** <var class="pdparam">src</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1124276036"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>src</code></em></span></dt><dd><p>
4     null-terminated vector to copy
5    </p></dd></dl></div></div><div class="refsect1"><a name="idp1124277612"></a><h2>Context</h2><p>
6   initialization code, which may sleep
7</p></div><div class="refsect1"><a name="idp1124278236"></a><h2>Description</h2><p>
8   This makes a copy of a vector of USB descriptors.  Its primary use
9   is to support usb_function objects which can have multiple copies,
10   each needing different descriptors.  Functions may have static
11   tables of descriptors, which are used as templates and customized
12   with identifiers (for interfaces, strings, endpoints, and more)
13   as needed by a given function instance.
14</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-usb-gadget-config-buf.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="utils.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="composite.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">usb_gadget_config_buf</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;Composite Device Framework</td></tr></table></div></body></html>
15