From owner-freebsd-arch@FreeBSD.ORG Fri Mar 19 21:21:55 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 BD7D216A4CE for ; Fri, 19 Mar 2004 21:21:55 -0800 (PST) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D2DF43D31 for ; Fri, 19 Mar 2004 21:21:55 -0800 (PST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) i2K5KuUS050307 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Sat, 20 Mar 2004 06:21:01 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id i2K5K9hn021873 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 20 Mar 2004 06:20:09 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id i2K5K95G034049 for ; Sat, 20 Mar 2004 06:20:09 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id i2K5K8PL034048 for arch@freebsd.org; Sat, 20 Mar 2004 06:20:08 +0100 (CET) (envelope-from ticso) Date: Sat, 20 Mar 2004 06:20:08 +0100 From: Bernd Walter To: arch@freebsd.org Message-ID: <20040320052007.GC33602@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.61 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on cicely5.cicely.de Subject: Opinions about using USB serial numbers X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Mar 2004 05:21:55 -0000 I have a lot to do with systems using many USB devices of the same kind. Currently device are named acording to their probing order. That result in the problematic that device names can change after reboot or replugging in different order. I would like to add functionality for creating alias devnodes including the serial numbers (if the device has one setup). E.g. for a ucom(4) device you will get /dev/ucom0 and ucom.serialnumber. If the device has no serial numer there will be just /dev/ucom0 as befor. Another solution could be to create the nodes in a tree form: /dev/usbchannel0/hubport1/pubport2/ucom That would work for devices without serial numbers too, but I personally dislike this way. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de