---
name: "uart_insert_char"
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_insert_char"
---

# uart\_insert\_char(9)

push a char to the uart layer

## NAME

uart\_insert\_char - push a char to the uart layer

## SYNOPSIS

**void uart\_insert\_char(struct uart\_port \*** *port***, unsigned int** *status***, unsigned int** *overrun***, unsigned int** *ch***, unsigned int** *flag***);**

## ARGUMENTS

*port*

corresponding port

*status*

state of the serial port RX buffer (LSR for 8250)

*overrun*

mask of overrun bits in *status*

*ch*

character to push

*flag*

flag for the character (see TTY\_NORMAL and friends)

## DESCRIPTION

User is responsible to call tty\_flip\_buffer\_push when they are done with insertion.

## COPYRIGHT
