From owner-freebsd-arch@FreeBSD.ORG Sat Mar 20 17:43:15 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 B341516A4CE for ; Sat, 20 Mar 2004 17:43:15 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4515843D41 for ; Sat, 20 Mar 2004 17:43:15 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.10/8.12.9) with ESMTP id i2L1h9kj059741; Sat, 20 Mar 2004 18:43:10 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 20 Mar 2004 18:43:36 -0700 (MST) Message-Id: <20040320.184336.88475380.imp@bsdimp.com> To: ticso@cicely.de, ticso@cicely12.cicely.de From: "M. Warner Losh" In-Reply-To: <20040320052007.GC33602@cicely12.cicely.de> References: <20040320052007.GC33602@cicely12.cicely.de> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: arch@freebsd.org Subject: Re: Opinions about using USB serial numbers 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: Sun, 21 Mar 2004 01:43:15 -0000 In message: <20040320052007.GC33602@cicely12.cicely.de> Bernd Walter writes: : 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. I'd rather that we have a generic binding of a device instance number to a pnp location. However, having said that, you can use devd to extract the information from the node and then create a symbolic link... Warner