aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-10-22 22:59:04 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-22 22:59:04 -0400
commit73ecf3a6e3f0206bf56a0fefe3b3eda042fb7034 (patch)
tree866f0ebb2b148479e93b5ac955097b1cc94ceb4e /Documentation
parentb9da0571050c09863e59f94d0b8594a290d61b88 (diff)
parentcd3ecad19aea8debae9a48b53de2ec7a571f24e9 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6: (49 commits) serial8250: ratelimit "too much work" error serial: bfin_sport_uart: speed up sport RX sample rate to be 3% faster serial: abstraction for 8250 legacy ports serial/imx: check that the buffer is non-empty before sending it out serial: mfd: add more baud rates support jsm: Remove the uart port on errors Alchemy: Add UART PM methods. 8250: allow platforms to override PM hook. altera_uart: Don't use plain integer as NULL pointer altera_uart: Fix missing prototype for registering an early console altera_uart: Fixup type usage of port flags altera_uart: Make it possible to use Altera UART and 8250 ports together altera_uart: Add support for different address strides altera_uart: Add support for getting mapbase and IRQ from resources altera_uart: Add support for polling mode (IRQ-less) serial: Factor out uart_poll_timeout() from 8250 driver serial: mark the 8250 driver as maintained serial: 8250: Don't delay after transmitter is ready. tty: MAINTAINERS: add drivers/serial/jsm/ as maintained driver vcs: invoke the vt update callback when /dev/vcs* is written to ...
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devices.txt1
-rw-r--r--Documentation/filesystems/proc.txt32
2 files changed, 33 insertions, 0 deletions
diff --git a/Documentation/devices.txt b/Documentation/devices.txt
index d0d1df6cb5de..6a08fd731d28 100644
--- a/Documentation/devices.txt
+++ b/Documentation/devices.txt
@@ -239,6 +239,7 @@ Your cooperation is appreciated.
239 0 = /dev/tty Current TTY device 239 0 = /dev/tty Current TTY device
240 1 = /dev/console System console 240 1 = /dev/console System console
241 2 = /dev/ptmx PTY master multiplex 241 2 = /dev/ptmx PTY master multiplex
242 3 = /dev/ttyprintk User messages via printk TTY device
242 64 = /dev/cua0 Callout device for ttyS0 243 64 = /dev/cua0 Callout device for ttyS0
243 ... 244 ...
244 255 = /dev/cua191 Callout device for ttyS191 245 255 = /dev/cua191 Callout device for ttyS191
diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt
index a6aca8740883..98223a676940 100644
--- a/Documentation/filesystems/proc.txt
+++ b/Documentation/filesystems/proc.txt
@@ -1075,6 +1075,7 @@ Table 1-11: Files in /proc/tty
1075 drivers list of drivers and their usage 1075 drivers list of drivers and their usage
1076 ldiscs registered line disciplines 1076 ldiscs registered line disciplines
1077 driver/serial usage statistic and status of single tty lines 1077 driver/serial usage statistic and status of single tty lines
1078 consoles registered system console lines
1078.............................................................................. 1079..............................................................................
1079 1080
1080To see which tty's are currently in use, you can simply look into the file 1081To see which tty's are currently in use, you can simply look into the file
@@ -1093,6 +1094,37 @@ To see which tty's are currently in use, you can simply look into the file
1093 /dev/tty /dev/tty 5 0 system:/dev/tty 1094 /dev/tty /dev/tty 5 0 system:/dev/tty
1094 unknown /dev/tty 4 1-63 console 1095 unknown /dev/tty 4 1-63 console
1095 1096
1097To see which character device lines are currently used for the system console
1098/dev/console, you may simply look into the file /proc/tty/consoles:
1099
1100 > cat /proc/tty/consoles
1101 tty0 -WU (ECp) 4:7
1102 ttyS0 -W- (Ep) 4:64
1103
1104The columns are:
1105
1106 device name of the device
1107 operations R = can do read operations
1108 W = can do write operations
1109 U = can do unblank
1110 flags E = it is enabled
1111 C = it is prefered console
1112 B = it is primary boot console
1113 p = it is used for printk buffer
1114 b = it is not a TTY but a Braille device
1115 a = it is safe to use when cpu is offline
1116 * = it is standard input of the reading process
1117 major:minor major and minor number of the device separated by a colon
1118
1119If the reading process holds /dev/console open at the regular standard input
1120stream the active device will be marked by an asterisk:
1121
1122 > cat /proc/tty/consoles < /dev/console
1123 tty0 -WU (ECp*) 4:7
1124 ttyS0 -W- (Ep) 4:64
1125 > tty
1126 /dev/pts/3
1127
1096 1128
10971.8 Miscellaneous kernel statistics in /proc/stat 11291.8 Miscellaneous kernel statistics in /proc/stat
1098------------------------------------------------- 1130-------------------------------------------------