From owner-freebsd-usb@FreeBSD.ORG Wed May 18 12:23:17 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFC7B106566B for ; Wed, 18 May 2011 12:23:17 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id A256F8FC08 for ; Wed, 18 May 2011 12:23:17 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.4/8.14.4) with ESMTP id p4IBrIWO031514; Wed, 18 May 2011 05:53:18 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.4/8.14.4/Submit) with ESMTP id p4IBrGCw031511; Wed, 18 May 2011 05:53:16 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Wed, 18 May 2011 05:53:16 -0600 (MDT) From: Warren Block To: Hans Petter Selasky In-Reply-To: <201105180857.21315.hselasky@c2i.net> Message-ID: References: <201105171118.43267.hselasky@c2i.net> <6CFC0E04-AF60-4983-A6FA-0AEC3CFAF75A@vindaloo.com> <201105180857.21315.hselasky@c2i.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Wed, 18 May 2011 05:53:19 -0600 (MDT) Cc: Charles Sprickman , freebsd-usb@freebsd.org Subject: Re: usb serial port device naming X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2011 12:23:18 -0000 On Wed, 18 May 2011, Hans Petter Selasky wrote: > On Tuesday 17 May 2011 18:19:25 Christopher Hilton wrote: >> On May 17, 2011, at 5:18 AM, Hans Petter Selasky wrote: >>> Hi, >>> >>> If you run 8-stable, there is some information you can lookup via sysctls >>> of the USB devices, which tells you which port belongs to which device. >>> >>> Use the serial number to identify your device, if your device has such a >>> value. >>> >>> usbconfig -d X.Y dump_device_desc >> >> Are you suggesting that one could use this information to config devd and >> perhaps automatically create a link to the correct port at USB attach >> time? I ask because I anticipate having to deal with this situation in the >> future. >> > > Yes, I think that is the idea. Currently this functionality is only introduced > in 8-stable and 9-current. If the serial number is available to devd, it might be possible to do that already. On attach, create a specially-named link to the device depending on the serial number.