---
name: "uart_add_one_port"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/uart_add_one_port"
---

# uart\_add\_one\_port(9)

attach a driver-defined port structure

## NAME

uart\_add\_one\_port - attach a driver-defined port structure

## SYNOPSIS

**int uart\_add\_one\_port(struct uart\_driver \*** *drv***, struct uart\_port \*** *uport***);**

## ARGUMENTS

*drv*

pointer to the uart low level driver structure for this port

*uport*

uart port structure to use for this port.

## DESCRIPTION

This allows the driver to register its own uart\_port structure with the core driver. The main purpose is to allow the low level uart drivers to expand uart\_port, rather than having yet more levels of structures.

## COPYRIGHT
