1UART_PARSE_OPTIONS(9) 16x50 UART Driver UART_PARSE_OPTIONS(9)
2
3
4
6 uart_parse_options - Parse serial port baud/parity/bits/flow contro.
7
9 void uart_parse_options(char * options, int * baud, int * parity,
10 int * bits, int * flow);
11
13 options
14 pointer to option string
15
16 baud
17 pointer to an 'int' variable for the baud rate.
18
19 parity
20 pointer to an 'int' variable for the parity.
21
22 bits
23 pointer to an 'int' variable for the number of data bits.
24
25 flow
26 pointer to an 'int' variable for the flow control character.
27
29 uart_parse_options decodes a string containing the serial console
30 options. The format of the string is <baud><parity><bits><flow>,
31
33 115200n8r
34
36Kernel Hackers Manual 2.6. November 2011 UART_PARSE_OPTIONS(9)