other versions
- stretch 4.9.168-1
CDC_PARSE_CDC_HEADER(9) | USB Core APIs | CDC_PARSE_CDC_HEADER(9) |
NAME¶
cdc_parse_cdc_header - parse the extra headers present in CDC devicesSYNOPSIS¶
int cdc_parse_cdc_header(struct usb_cdc_parsed_header * hdr, struct usb_interface * intf, u8 * buffer, int buflen);
ARGUMENTS¶
hdrthe 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 salvageCOPYRIGHT¶
April 2019 | Kernel Hackers Manual 4.9. |