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

Antonino A. Daplas
2006-07-10T14:42:37Z

Jon Smirl wrote:
> On 7/10/06, Alan Cox <alan@lxorguk.ukuu.org.uk> 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