In Linux, all peripheral devices have their names and codes, which are stored in the/dev directory as special files. You can run the tty (teletypewriter) command to query the file name of the currently used terminal.SyntaxTty [-s] [-- help] [-- version]Parameter description: -S or -- silent or -- quiet does not display any information, but only returns the status code. -- Help online help. -- Version: displays the version information.Instance
Brief introduction
The name of the TTY device is abbreviated from the previous telex, originally referred to as a physical or virtual terminal connected to a UNIX system
The core of the Linux TTY driver is immediately below the standard character device driver layer and provides a range of functions that are used as interfaces by terminal type devices
There are three types of
Pty/tty device Race Condition Vulnerability (CVE-2014-0196), ptycve-2014-0196Prerequisites
1. pty/tty. A product with a long history, mainly used for terminal input and output. Introductory article: http://www.linusakesson.net/programming/tty/
2. slab. It is mainly used to allocate memory of a specific size to prevent memory fragments and holes. It is similar to
I have handled several serial port problems, so I have a little time to sort out these items in the past few days.
The directory is roughly divided into the following parts:
0, Background
1. Serial Drive Structure
2. Implementation of serial port driver
3. About tty Core
Bytes ---------------------------------------------------------------------------------------------------
0, Background
When you review this piece of code, the Linux code tree is ofte
Tty architecture is divided into three layers:Level 1:Tty_coreThe top-layer architecture of all tty drivers provides a unified interface to the application. The read/write calls at the application layer will first arrive here. This layer is implemented by the kernel and the code is mainly distributed inThe n_tty.c and tty_io.c files in the drivers/Char directoryStatic const struct file_operations tty_fops =
I. Structure of terminal Devices
The tty hierarchy chart in the Linux kernel contains the TTY core, tty line rules, and tty drivers. The core of tty is the abstraction of the entire tty device. It provides a unified interface f
Reprint: http://www.linuxidc.com/Linux/2013-11/92639.htmReference:http://blog.csdn.net/lamdoc/article/details/7685896Http://www.linuxidc.com/Linux/2011-07/39521.htm1. TTY DevicesThere are serial port, USB to serial port, modem (traditional Winmodem class equipment) and so on. The core of the Linux-tty driver is immediately below the standard character device driver layer and features a series of functions t
Basic concepts:1> tty (collectively referred to as the terminal device ):Tty is derived from teletypes or teletypewriters. Originally, it refers to a telex typewriter, which reads and sends messages through a printer keyboard through a serial line. Later, it was replaced by a keyboard and a display, so now it is more appropriate to call the terminal.A terminal is a type of terminal device. It has multiple t
This article was reprinted from: http://ju.outofmemory.cn/entry/2811681. ObjectiveBecause of the serial port, TTY is the most common type of equipment in Linux, and a little bit about the students of Linux system is not unfamiliar to it. Nevertheless, it is believed that few people can return to the question: what is a TTY? What do we mean by the concept of terminal (terminal), console, etc. that we often h
As an embedded product, the company uses the ARM kernel and Linux operating system (not uClinux ). My recent work is to mount a previously prepared module (via serial port for communication) to the system, and control a series of work of this module through serial port, and require
Into a separate driver (not controlled by an application ). I also want to familiarize myself with the development method of the device driver in Linux. The Development Board of another company we bought, Linux, can n
Tags: 64-bit Linux kernel Android KernelIn a 64-bit system, when registering a tty device, you must note that android runs in el0 and 32-Bit mode, and the kernel runs in el1 and 64-Bit mode, not only does the kernel need to enable the config_compat option, but IOCTL called by many Android upper-layer applications must
Differences between tty, Pty, and PTS in Linux
Basic concepts:1> tty (collectively referred to as the terminal device ):Tty is derived from teletypes or teletypewriters. Originally, it refers to a telex typewriter, which reads and sends messages through a printer keyboard through a serial line. Later, it was replaced by a keyboard and a display, so now i
Http://blog.sina.com.cn/s/blog_6151984a0100ejfg.html/Sbin/Getty-l 38400 ttys0 VT100Command used:Tty view which terminal to useWho views logged-on usersW. View login usersEcho "ABC">/dev/pts /*Echo "123">/dev/ttyama0 information transmission between different terminalsWhen you run a program, the process will definitely correspond to a terminal, and the printf print information will appear on the terminal. When the program enters the kernel state (such as calling the driver ), printk prints inform
TTY and PTS in Linux [to] 639473375
15:54:57 favorites | print | vote (6) | comment (0) | read (23803) ◇ fonts: [large, small]
Tty is derived from teletypes or teletypewriters. Originally, it refers to a telex typewriter, which reads and sends messages through a printer keyboard through a serial line. Later, it was replaced by a keyboard and a display, so now it is more appropriate to call the terminal.Bu
Basic Concepts① Tty (collectively referred to as the terminal device ):Tty is derived from Teletypes or teletypewriters. Originally, it refers to a telex typewriter, which reads and sends messages through a printer keyboard through a serial line. Later, it was replaced by a keyboard and a display, so now it is more appropriate to call the terminal.A terminal is a type of terminal device. It has multiple typ
Reprint: http://blog.sina.com.cn/s/blog_638ac15c01012e0v.htmlBasic Concepts:1> TTY (collectively referred to as terminal equipment):The word "TTY" originates from teletypes, or teletypewriters, which originally refers to a telex typewriter, which is used to read and send information through a printer keyboard through a serial line, which is later replaced by a keyboard and a display, so it is now more appro
Basic concepts: 1. tty (collectively referred to as the terminal device ):Tty is derived from teletypes or teletypewriters. Originally, it refers to a telex typewriter, which reads and sends messages through a printer keyboard through a serial line. Later, it was replaced by a keyboard and a display, so now it is more appropriate to call the terminal.A terminal is a type of terminal device. It has multiple
Basic Concepts:1> TTY (collectively referred to as terminal equipment):The word "TTY" originates from teletypes, or teletypewriters, which originally refers to a telex typewriter, which is used to read and send information through a printer keyboard through a serial line, which is later replaced by a keyboard and a display, so it is now more appropriate to call the terminal.A terminal is a type of character
TTY Driver FrameworkFirst, the concept of TTY analysisIn a Linux system, a terminal is a type of character device, which consists of many types, usually using a TTY for short-range end devices.1.1 Serial terminal (/dev/ttys*)The serial port terminal is the end device which uses the computer serial port connection. Linux considers each serial port to be a characte
TTY Driver FrameworkFirst, the concept of TTY analysisIn a Linux system, a terminal is a type of character device, which consists of many types, usually using a TTY for short-range end devices.1.1 Serial terminal (/dev/ttys*)The serial port terminal is the end device which uses the computer serial port connection. Linux considers each serial port to be a characte
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.