'\" t .\" Title: uart_parse_options .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: 16x50 UART Driver .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "UART_PARSE_OPTIONS" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "16x50 UART Driver" .\" ----------------------------------------------------------------- .\" * 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" uart_parse_options \- Parse serial port baud/parity/bits/flow control\&. .SH "SYNOPSIS" .HP \w'void\ uart_parse_options('u .BI "void uart_parse_options(char\ *\ " "options" ", int\ *\ " "baud" ", int\ *\ " "parity" ", int\ *\ " "bits" ", int\ *\ " "flow" ");" .SH "ARGUMENTS" .PP \fIoptions\fR .RS 4 pointer to option string .RE .PP \fIbaud\fR .RS 4 pointer to an \*(Aqint\*(Aq variable for the baud rate\&. .RE .PP \fIparity\fR .RS 4 pointer to an \*(Aqint\*(Aq variable for the parity\&. .RE .PP \fIbits\fR .RS 4 pointer to an \*(Aqint\*(Aq variable for the number of data bits\&. .RE .PP \fIflow\fR .RS 4 pointer to an \*(Aqint\*(Aq variable for the flow control character\&. .RE .SH "DESCRIPTION" .PP uart_parse_options decodes a string containing the serial console options\&. The format of the string is , eg: 115200n8r .SH "COPYRIGHT" .br