---
name: "usb_copy_descriptors"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/usb_copy_descriptors"
---

# usb\_copy\_descriptors(9)

copy a vector of USB descriptors

## NAME

usb\_copy\_descriptors - copy a vector of USB descriptors

## SYNOPSIS

**struct usb\_descriptor\_header \*\* usb\_copy\_descriptors(struct usb\_descriptor\_header \*\*** *src***);**

## ARGUMENTS

*src*

null-terminated vector to copy

## CONTEXT

initialization code, which may sleep

## DESCRIPTION

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.

## AUTHOR

**David Brownell** \<dbrownell@users.sourceforge.net\>

Author.

## COPYRIGHT
