Re: [PATCH] Clean up old names in tty code to current names

From: Antonino A. Daplas
Date: Mon Jul 10 2006 - 10:41:05 EST


Jon Smirl wrote:
> On 7/10/06, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:
>> Ar Llu, 2006-07-10 am 09:03 -0400, ysgrifennodd Jon Smirl:
>> > I agree with this. I made a mistake with the pts vs pty, why not just
>> > help me fix the mistake instead of rejecting everything? Some the of
>> > the info being reported in /proc/tty/drivers is wrong (vc./0 - from
>> > the devfs attempt?). or missing.
>>
>> What are you trying to achieve and where are you trying to get. If you
>> want better info for the tty layer then get the new info working in
>> sysfs first. Then when people are generally using sysfs you can worry
>> about cleaning up/removing/breaking the old stuff.
>>
>
> Before the change /proc/tty/drivers shows this:
>
> [jonsmirl@jonsmirl ~]$ cat /proc/tty/drivers
> /dev/tty /dev/tty 5 0 system:/dev/tty
> /dev/console /dev/console 5 1 system:console
> /dev/ptmx /dev/ptmx 5 2 system
> /dev/vc/0 /dev/vc/0 4 0 system:vtmaster

vtmaster was /dev/tty0 in 2.2.x, changed to /dev/vc/0 probably
because of devfs. I would tend to agree with the change of at least
this part.

A few apps do rely on /proc/tty/drivers for the major-minor
to device name mapping. /dev/vc/0 does not exist (unless
created manually) without devfs.

Tony
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/