-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Kay Sievers
authored and
Greg Kroah-Hartman
committed
Dec 17, 2010
1 parent
35c64e5
commit fbc92a3
Showing
5 changed files
with
87 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
What: /sys/class/tty/console/active | ||
Date: Nov 2010 | ||
Contact: Kay Sievers <kay.sievers@vrfy.org> | ||
Description: | ||
Shows the list of currently configured | ||
console devices, like 'tty1 ttyS0'. | ||
The last entry in the file is the active | ||
device connected to /dev/console. | ||
The file supports poll() to detect virtual | ||
console switches. | ||
|
||
What: /sys/class/tty/tty0/active | ||
Date: Nov 2010 | ||
Contact: Kay Sievers <kay.sievers@vrfy.org> | ||
Description: | ||
Shows the currently active virtual console | ||
device, like 'tty1'. | ||
The file supports poll() to detect virtual | ||
console switches. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters