According to the comment in the Linux kernel source file
drivers/tty/vt/vt_ioctl.c /dev/tty0 points to /dev/console,
so we should just go to /dev/console, and virtual terminals
are always labeled /dev/ttyN where N is 1..MAX_NR_CONSOLES,
so only check /dev/ttyN.
Signed-off-by: Cody Maloney
---
hw
According to the kernel documentation doc/Documentation/serial-console.txt and
doc/Documentation/devices.txt we should use /dev/ttyN. /dev/tty0 for the VT
ioctls, and /dev/ttyN for all the virtual terminals. Checking /dev/vc is
therefore unnecessary.
Signed-off-by: Cody Maloney
---
hw/xfree86/os
On Sat, May 14, 2011 at 13:38:27 -0700, Cody Maloney wrote:
> According to the comment in the Linux kernel source file
> drivers/tty/vt/vt_ioctl.c /dev/tty0 points to /dev/console,
> so we should just go to /dev/console, and virtual terminals
> are always labeled /dev/ttyN where N is 1..MAX_NR_CON
I'm not an expert in this in any way, but looking at
http://www.kernel.org/doc/Documentation/devices.txt
it states under the terminal devices section, "The console device,
/dev/console, is the device to which system messages should be sent".
Based on the sparse mailing list postings/documentation I
After a little bit more searching I found conflicting information in
http://www.kernel.org/doc/Documentation/serial-console.txt, which says
/dev/tty0 should be used. I can switch the code to use /dev/tty0
instead of /dev/console since the documentation seems to uniformly say
that should work, while
On May 14, 2011 3:39 PM, "Cody Maloney"
wrote:
>
> According to the comment in the Linux kernel source file
> drivers/tty/vt/vt_ioctl.c /dev/tty0 points to /dev/console,
> so we should just go to /dev/console, and virtual terminals
> are always labeled /dev/ttyN where N is 1..MAX_NR_CONSOLES,
> so
On Mon, May 16, 2011 at 5:27 AM, Timothy Meade wrote:
>
> On May 14, 2011 3:39 PM, "Cody Maloney"
> wrote:
>>
>> According to the comment in the Linux kernel source file
>> drivers/tty/vt/vt_ioctl.c /dev/tty0 points to /dev/console,
>> so we should just go to /dev/console, and virtual terminals
>