---
name: "cdc_parse_cdc_header"
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/cdc_parse_cdc_header"
---

# cdc\_parse\_cdc\_header(9)

parse the extra headers present in CDC devices

## NAME

cdc\_parse\_cdc\_header - parse the extra headers present in CDC devices

## SYNOPSIS

**int cdc\_parse\_cdc\_header(struct usb\_cdc\_parsed\_header \*** *hdr***, struct usb\_interface \*** *intf***, u8 \*** *buffer***, int** *buflen***);**

## ARGUMENTS

*hdr*

the place to put the results of the parsing

*intf*

the interface for which parsing is requested

*buffer*

pointer to the extra headers to be parsed

*buflen*

length of the extra headers

## DESCRIPTION

This evaluates the extra headers present in CDC devices which bind the interfaces for data and control and provide details about the capabilities of the device.

## RETURN

number of descriptors parsed or -EINVAL if the header is contradictory beyond salvage

## COPYRIGHT
