1USB_COPY_DESCRIPTORS(9) Kernel Mode Gadget API USB_COPY_DESCRIPTORS(9)
2
3
4
6 usb_copy_descriptors - copy a vector of USB descriptors
7
9 struct usb_descriptor_header **
10 usb_copy_descriptors(struct usb_descriptor_header ** src);
11
13 src
14 null-terminated vector to copy
15
17 initialization code, which may sleep
18
20 This makes a copy of a vector of USB descriptors. Its primary use is to
21 support usb_function objects which can have multiple copies, each
22 needing different descriptors. Functions may have static tables of
23 descriptors, which are used as templates and customized with
24 identifiers (for interfaces, strings, endpoints, and more) as needed by
25 a given function instance.
26
28 David Brownell <dbrownell@users.sourceforge.net>
29 Author.
30
32Kernel Hackers Manual 2.6. June 2019 USB_COPY_DESCRIPTORS(9)