1SERIAL8250_GET_PORT(9) 16x50 UART Driver SERIAL8250_GET_PORT(9)
2
3
4
6 serial8250_get_port - retrieve struct uart_8250_port
7
9 struct uart_8250_port * serial8250_get_port(int line);
10
12 line
13 serial line number
14
16 This function retrieves struct uart_8250_port for the specific line.
17 This struct *must* *not* be used to perform a 8250 or serial core
18 operation which is not accessible otherwise. Its only purpose is to
19 make the struct accessible to the runtime-pm callbacks for context
20 suspend/restore. The lock assumption made here is none because
21 runtime-pm suspend/resume callbacks should not be invoked if there is
22 any operation performed on the port.
23
25Kernel Hackers Manual 3.10 June 2019 SERIAL8250_GET_PORT(9)