From owner-freebsd-arch@FreeBSD.ORG Mon Sep 20 13:51:59 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B735616A576 for ; Mon, 20 Sep 2004 13:51:59 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FFC243D45 for ; Mon, 20 Sep 2004 13:51:59 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id i8KDpqal020548; Mon, 20 Sep 2004 15:51:52 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Roman Kurakin From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 20 Sep 2004 17:47:18 +0400." <414EDF66.8030907@cronyx.ru> Date: Mon, 20 Sep 2004 15:51:52 +0200 Message-ID: <20547.1095688312@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: arch@freebsd.org Subject: Re: [HEADSUP] naming of tty devices. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2004 13:51:59 -0000 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. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.