'\" t .\" Title: cdc_parse_cdc_header .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: April 2019 .\" Manual: USB Core APIs .\" Source: Kernel Hackers Manual 4.9.168 .\" Language: English .\" .TH "CDC_PARSE_CDC_HEADER" "9" "April 2019" "Kernel Hackers Manual 4\&.9\&." "USB Core APIs" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" cdc_parse_cdc_header \- parse the extra headers present in CDC devices .SH "SYNOPSIS" .HP \w'int\ cdc_parse_cdc_header('u .BI "int cdc_parse_cdc_header(struct\ usb_cdc_parsed_header\ *\ " "hdr" ", struct\ usb_interface\ *\ " "intf" ", u8\ *\ " "buffer" ", int\ " "buflen" ");" .SH "ARGUMENTS" .PP \fIhdr\fR .RS 4 the place to put the results of the parsing .RE .PP \fIintf\fR .RS 4 the interface for which parsing is requested .RE .PP \fIbuffer\fR .RS 4 pointer to the extra headers to be parsed .RE .PP \fIbuflen\fR .RS 4 length of the extra headers .RE .SH "DESCRIPTION" .PP 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\&. .SH "RETURN" .PP number of descriptors parsed or \-EINVAL if the header is contradictory beyond salvage .SH "COPYRIGHT" .br