Re: [HEADSUP] naming of tty devices.
From: Vladimir Grebenschikov (vova_at_fbsd.ru)
Date: 09/20/04
- Previous message: Poul-Henning Kamp: "Re: [HEADSUP] naming of tty devices."
- In reply to: Poul-Henning Kamp: "Re: [HEADSUP] naming of tty devices."
- Next in thread: Roman Kurakin: "Re: [HEADSUP] naming of tty devices."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Poul-Henning Kamp <phk@phk.freebsd.dk> Date: Mon, 20 Sep 2004 18:25:35 +0400
В пн, 20/09/2004 в 15:51 +0200, Poul-Henning Kamp пишет:
> In message <414EDF66.8030907@cronyx.ru>, Roman Kurakin writes:
>
> >>> Why not to add some general device enumeration for all devices,
> >>>especially
> >>>if devices would behave the same?
> >>>
> >>>tty%{global_port}
> >>>cua%{global_port}
> >>
> >>This doesn't work.
> >>
> >>There _are_ differences between serial devices and for instance
> >>PTYs or NMDM devices have very particular semantics.
> >>
> >but all tty devices have some generic abilities and behaviour, right?
> >(Sorry, I am a bit sio-centric, I didn't ever look inside ptys.)
>
> Yes, and those generic abilities is why I want systematic naming.
>
> But a global numbering gives you no way to know that tty234 is a PTY
> and tty235 is a USB device.
As da3 do not give you any hint is it SCSI disk, USB connected memory
card or firewire-connected DV-Camera.
I am not vote for uniform ttys numbering, just notice about similar
subsystem.
Actual another problem - ttys should be allocated from userland as
minimum tty/pty (in contrary with disks).
One of possible solutions - different dev name-spaces
/dev/tty/ZXX - for generic ttys (all other ttys mapped there too)
/dev/pty/XX - for pseudo-ttys
/dev/sio/XX - for former ttydX
/dev/cua/XX - for former cuaaX
/dev/nmdm/XX - for null-modem
/dev/con/XX - for console
etc...
But this layout broke any possible compatibility and will only confuse
userland (what name should be considered as primary ?)
I like pkh@ idea if there still way to list all available tty devices in
system. (sysctl or dev entry/directory)
-- Vladimir B. Grebenchikov vova@fbsd.ru _______________________________________________ freebsd-arch@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-arch To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Poul-Henning Kamp: "Re: [HEADSUP] naming of tty devices."
- In reply to: Poul-Henning Kamp: "Re: [HEADSUP] naming of tty devices."
- Next in thread: Roman Kurakin: "Re: [HEADSUP] naming of tty devices."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]