Messages in this thread | | | Date | Thu, 18 Nov 2010 11:23:35 +0000 | From | Alan Cox <> | Subject | Re: tty: add 'active' sysfs attribute to tty0 and console device |
| |
> is the most pressing case e.g. on s390 or zSeries) and this without > forcing (and maybe stealing) the controlling tty on the system console > to be able to detect the primary tty/console.
What do you mean by console in this context
The console in printk context and the "console" in "active vt window" are unrelated concepts with the same name, so its a bit confusing to follow here.
> facilities (having device, read, write, and unblank) are also shown > in the new file /sys/class/tty/console/active ... but maybe Randy > could says a few words for what this is usable.
The system console does not even need to be a tty device, and on many embedded devices is not (it may for example by a RAM buffer not wiped over reboots or it may be jtag or MIPI trace ports.
"tty0" is *currently* a shorthand for "the VT the keyboard/display are showing". That's a shorthand that in itself will make no sense in future.
Alan
| |