Pass data or error and control codes to io-char
int tti(TTYDEV *dev,
unsigned c );
- A pointer to the structure that represents the specific device that data has been received on.
- Contains received data and control codes that modify how the data is read and processed.
See the TTI_* defines below for more details.
This function forwards data received by the hardware to io-char
and passes error/control codes.
The control type is extracted from c, and is one of:
- Indicates a “break” signal has been detected by the
hardware, or a VINTR character has been received.
- Internal to io-char. Indicates a VQUIT character has been
- Internal to io-char. Indicates a VSUSP character has been
- An overrun has been detected by the hardware.
- A framing error has been detected by the hardware.
- A parity error has been detected by the hardware.
- Indicates to the io-char library that a carrier was detected
(i.e. the hardware modem is online).
- Indicates to io-char that the hardware modem is “hung up.” This type
is the opposite of TTI_CARRIER
- Used by hardware flow control to stop output.
- Used by hardware flow control to start output.
If this call returns 0, do nothing. If it returns 1, an event needs to
be generated for io-char.