cdc_parse_cdc_header (9) - Linux Manuals
cdc_parse_cdc_header: 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, intbuflen);
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