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

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


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 it conflicts itself about /dev/console.

Cody

On Sat, May 14, 2011 at 2:09 PM, Cody Maloney
<cmaloney at theoreticalchaos.com> wrote:
> 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