Re: [PATCH] devfs v99.11 available

From: Khimenko Victor (khim@sch57.msk.ru)
Date: Thu Feb 10 2000 - 11:54:17 EST


In <Pine.GSO.4.05.10002101129480.29782-100000@willis.pubsites.buffalo.edu> James A Simmons (jsimmons@acsu.buffalo.edu) wrote:

JS> On Thu, 10 Feb 2000, Khimenko Victor wrote:

>> In <Pine.LNX.4.10.10002090846040.2414-100000@maxwell.futurevision.com> James Simmons (jsimmons@acsu.buffalo.edu) wrote:
>>
>> >> This is against 2.2.14. Highlights of this release:
>> >>
>> >> - Ported devfs-patch-v99.10 to kernel 2.2.14
>> >>
>> >> - Moved /dev/tty0 to /dev/vc/0
>>
>> > Why did you move tty0 to vc/0 ? The console system will be changing for
>> > 2.5.X. It will become multihead aware which means that we might end up
>> > with /dev/tty representing physical heads and /dev/vty to represent
>> > virtual consoles.
>>
>> There are EXECTLY one tty with devfs now: /dev/tty - current tty for process.
>> I think this name is used that way even before Linux.

JS> Right. That will not change.

>> Now there are
>> /dev/vc/* to represent virtual consoles and /dev/vcc/* to represent color
>> virtual consoles (i.e. virtual consoles with attributes).

JS> Okay. Instead of /dev/vtyX like I was think of.

>> /dev/tty0 was
>> "current" virtual console. So it naturally belond to /dev/vc/0 .

JS> Which will change meaning if their is more than one head.

WHY it SHOULD change mening ? Even with multihead you STILL have ONLY one
"current" virtual console for every program.

>> With multihead
>> one additional directory can be itroduced for physical heads
>> (/dev/<something>/*) but /dev/vc/* will be virtual consoles anyway and
>> /dev/vc/0 will be current virtual console.

JS> I understand but see below.

>> You can not use names /dev/tty/*
>> for "physical heads" and use /dev/tty at the same time (even with devfs you
>> can not have character device and directory with the same name in one
>> subdirectory). So what's strange with this decision ?

JS> Thats not what I was saying. /dev/ttyX represent each head and /dev/vtyX
JS> represent each virtual console.

There are NO things like /dev/ttyX in devfs. If there are more then one device
there are directory for that devices (/dev/tts/* for serial ports,
/dev/printer/* for line printer ports, etc). You can not use /dev/tty/* and
/dev/tty at the same time. So what yoy proposing as /dev/ttyX will be
in some subdirectory and there are will be "0" for "current" head as well.
What's wrong here ?

JS> The question is where did this design come from? Is their a
JS> technical or standards issue reason for this change ? Its no big deal
JS> except for breaking things. I just want to know thw reasoning behind this
JS> design.

Which part of it ?

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



This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 21:00:17 EST