cdc_parse_cdc_header(9)

cdc_parse_cdc_header9

Parse the extra headers present in cdc devices

Usage

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

Overview

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

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.