diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2010-12-01 12:51:05 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-16 19:15:34 -0500 |
commit | fbc92a3455577ab17615cbcb91826399061bd789 (patch) | |
tree | 0f47703d9d3b40969e007a6d27a1b603cdff43da /Documentation/ABI/testing/sysfs-tty | |
parent | 35c64e5d13c3d7d8c4ad061ad5e20498b9160c24 (diff) |
tty: add 'active' sysfs attribute to tty0 and console device
tty: add 'active' sysfs attribute to tty0 and console device
Userspace can query the actual virtual console, and the configured
console devices behind /dev/tt0 and /dev/console.
The last entry in the list of devices is the active device, analog
to the console= kernel command line option.
The attribute supports poll(), which is raised when the virtual
console is changed or /dev/console is reconfigured.
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
index 0000000..b138b66
Diffstat (limited to 'Documentation/ABI/testing/sysfs-tty')
-rw-r--r-- | Documentation/ABI/testing/sysfs-tty | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-tty b/Documentation/ABI/testing/sysfs-tty new file mode 100644 index 00000000000..b138b663bf5 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-tty | |||
@@ -0,0 +1,19 @@ | |||
1 | What: /sys/class/tty/console/active | ||
2 | Date: Nov 2010 | ||
3 | Contact: Kay Sievers <kay.sievers@vrfy.org> | ||
4 | Description: | ||
5 | Shows the list of currently configured | ||
6 | console devices, like 'tty1 ttyS0'. | ||
7 | The last entry in the file is the active | ||
8 | device connected to /dev/console. | ||
9 | The file supports poll() to detect virtual | ||
10 | console switches. | ||
11 | |||
12 | What: /sys/class/tty/tty0/active | ||
13 | Date: Nov 2010 | ||
14 | Contact: Kay Sievers <kay.sievers@vrfy.org> | ||
15 | Description: | ||
16 | Shows the currently active virtual console | ||
17 | device, like 'tty1'. | ||
18 | The file supports poll() to detect virtual | ||
19 | console switches. | ||