简体   繁体   中英

Role of tty in Linux kernel

I was going through the source code of Linux version 0.0.1. In the kernel source directory saw a file tty_io.c. What is the role of this file/tty in Linux kernel?

In Unix systems, a tty (which is short for "teletypewriter") is the standard representation of a terminal device , with at least input and output capabilities and usually much more. These were originally connected to serial ports, but most today are virtual terminals , connected to either a text-mode console (DOS-like) or a graphical terminal program (like xterm or gnome-terminal ).

This file is to support tty on user level interface or console.This also implements echoing.

tty : Print file name of terminal on standard input.For more info give info tty command on shell.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM