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

Cody Maloney cmaloney at theoreticalchaos.com
Sat May 14 14:09:35 PDT 2011


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 could find I
believe that /dev/vc/* is legacy from devfs, in udev only /dev/tty* is
used.

Cody

On Sat, May 14, 2011 at 12:49 PM, Julien Cristau <jcristau at debian.org> wrote:
>
> 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_CONSOLES,
> > so only check /dev/ttyN.
> >
> > Signed-off-by: Cody Maloney <cmaloney at theoreticalchaos.com>
> > ---
> >  hw/xfree86/os-support/linux/lnx_init.c |   39 ++++++-------------------------
> >  1 files changed, 8 insertions(+), 31 deletions(-)
> >
> NAK.  I think this breaks system with a serial console, where you can't
> always use VT ioctls on /dev/console.
>
> Cheers,
> Julien


More information about the xorg-devel mailing list