From /usr/local/src/BUILD_KERNAL/linux-2.6.26/Documentation/filesystems/proc.txt
Quote:
1.7 TTY info in /proc/tty
-------------------------
Information about the available and actually used tty's can be found in the
directory /proc/tty.You'll find entries for drivers and line disciplines in
this directory, as shown in Table 1-9.
Table 1-9: Files in /proc/tty
.................................................. ............................
File Content
drivers list of drivers and their usage
ldiscs registered line disciplines
driver/serial usage statistic and status of single tty lines
.................................................. ............................
To see which tty's are currently in use, you can simply look into the file
/proc/tty/drivers:
> cat /proc/tty/drivers
|
[root@kindle root]#
cat /sys/devices/virtual/tty/tty/dev
[root@kindle root]#
ll -R /dev |grep "5, *0"
Quote:
crw-rw---- 1 root root 5, 0 Oct 25 17:35 tty
|
[root@kindle root]#
cat /proc/tty/drivers
Quote:
/dev/tty /dev/tty 5 0 system:/dev/tty
/dev/console /dev/console 5 1 system:console
/dev/ptmx /dev/ptmx 5 2 system
usbserial /dev/ttyUSB 188 0-254 serial
ttymxc /dev/ttymxc 207 16-18 serial
pty_slave /dev/pts 136 0-1048575 pty:slave
pty_master /dev/ptm 128 0-1048575 pty:master
|