---
name: "usb_descriptor_fillbuf"
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_descriptor_fillbuf"
---

# usb\_descriptor\_fillbuf(9)

fill buffer with descriptors

## NAME

usb\_descriptor\_fillbuf - fill buffer with descriptors

## SYNOPSIS

**int usb\_descriptor\_fillbuf(void \*** *buf***, unsigned** *buflen***, const struct usb\_descriptor\_header \*\*** *src***);**

## ARGUMENTS

*buf*

Buffer to be filled

*buflen*

Size of buf

*src*

Array of descriptor pointers, terminated by null pointer.

## DESCRIPTION

Copies descriptors into the buffer, returning the length or a negative error code if they can't 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.

## AUTHOR

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

Author.

## COPYRIGHT
