WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: the TTY demystified  (Read 138 times)

Offline mocore

  • Hero Member
  • *****
  • Posts: 664
  • ~.~
the TTY demystified
« on: December 01, 2024, 07:11:56 AM »
Learn. Share. Grow your knowledge of Linux.

i was skimming through
  "the TTY demystified" @ https://www.linusakesson.net/programming/tty/index.php

ans wandered if it had been posted this hear ( search didn't find any previous mentions)

Quote
The TTY subsystem is central to the design of Linux, and UNIX in general. Unfortunately, its importance is often overlooked, and it is difficult to find good introductory articles about it. I believe that a basic understanding of TTYs in Linux is essential for the developer and the advanced user.

...

Quote
In The Hitchhiker's Guide to the Galaxy, Douglas Adams mentions an extremely dull planet, inhabited by a bunch of depressed humans and a certain breed of animals with sharp teeth which communicate with the humans by biting them very hard in the thighs. This is strikingly similar to UNIX,in which the kernel communicates with processes by sending paralyzing or deadly signals to them. Processes may intercept some of the signals, and try to adapt to the situation, but most of them don't.


https://github.com/torvalds/linux/blob/master/drivers/tty/n_tty.c

https://docs.kernel.org/5.17/tty/n_tty.html

https://github.com/torvalds/linux/blob/master/drivers/tty/tty_io.c

https://www.kernel.org/doc/html/v5.8/driver-api/serial/tty.html
« Last Edit: December 01, 2024, 07:18:01 AM by mocore »