'\" t .\" Title: serial8250_get_port .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: 16x50 UART Driver .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SERIAL8250_GET_PORT" "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" serial8250_get_port \- retrieve struct uart_8250_port .SH "SYNOPSIS" .HP \w'struct\ uart_8250_port\ *\ serial8250_get_port('u .BI "struct uart_8250_port * serial8250_get_port(int\ " "line" ");" .SH "ARGUMENTS" .PP \fIline\fR .RS 4 serial line number .RE .SH "DESCRIPTION" .PP This function retrieves struct uart_8250_port for the specific line\&. This struct *must* *not* be used to perform a 8250 or serial core operation which is not accessible otherwise\&. Its only purpose is to make the struct accessible to the runtime\-pm callbacks for context suspend/restore\&. The lock assumption made here is none because runtime\-pm suspend/resume callbacks should not be invoked if there is any operation performed on the port\&. .SH "COPYRIGHT" .br