[PATCH] linux: Clean up filenames used in Linux VT init.

2011-05-14 Thread Cody Maloney
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

[PATCH] linux: Clean up filenames used in Linux VT init.

2011-05-14 Thread Cody Maloney
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

Re: [PATCH] linux: Clean up filenames used in Linux VT init.

2011-05-14 Thread Julien Cristau
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

Re: [PATCH] linux: Clean up filenames used in Linux VT init.

2011-05-14 Thread Cody Maloney
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

Re: [PATCH] linux: Clean up filenames used in Linux VT init.

2011-05-14 Thread Cody Maloney
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

Re: [PATCH] linux: Clean up filenames used in Linux VT init.

2011-05-16 Thread Timothy Meade
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

Re: [PATCH] linux: Clean up filenames used in Linux VT init.

2011-05-16 Thread Cody Maloney
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 >