---
name: "uart_register_driver"
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_register_driver"
---

# uart\_register\_driver(9)

register a driver with the uart core layer

## NAME

uart\_register\_driver - register a driver with the uart core layer

## SYNOPSIS

**int uart\_register\_driver(struct uart\_driver \*** *drv***);**

## ARGUMENTS

*drv*

low level driver structure

## DESCRIPTION

Register a uart driver with the core driver. We in turn register with the tty layer, and initialise the core driver per-port state.

We have a proc file in /proc/tty/driver which is named after the normal driver.

drv-\>port should be NULL, and the per-port structures should be registered using uart\_add\_one\_port after this call has succeeded.

## COPYRIGHT
