From owner-freebsd-stable@FreeBSD.ORG Tue Jul 14 05:42:53 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0906106566B for ; Tue, 14 Jul 2009 05:42:53 +0000 (UTC) (envelope-from sagara@tomahawk.com.sg) Received: from us1.tomahawkonline.net (us1.tomahawkonline.net [66.98.178.56]) by mx1.freebsd.org (Postfix) with SMTP id 870468FC0A for ; Tue, 14 Jul 2009 05:42:53 +0000 (UTC) (envelope-from sagara@tomahawk.com.sg) Received: (qmail 7845 invoked by alias); 14 Jul 2009 02:24:35 -0000 Message-ID: <20090714022435.7844.qmail@us1.tomahawkonline.net> References: <20090713120732.31803.qmail@us1.tomahawkonline.net> In-Reply-To: <20090713120732.31803.qmail@us1.tomahawkonline.net> From: "Sagara Wijetunga" To: freebsd-stable@freebsd.org Date: Mon, 13 Jul 2009 21:24:35 -0500 Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: FreeBSD 7.2 USB stack info needed X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2009 05:42:54 -0000 Sagara Wijetunga writes: > Hi FreeBSD community > > After an USB thumb drive id pluged in, the devd prints following line: > > +umass0 vendor=0x0781 product=0x5406 devclass=0x00 devsubclass=0x00 > release=0x0200 sernum="087663165D8139E6" intclass=0x08 intsubclass=0x06 at > port=0 interface=0 vendor=0x0781 product=0x5406 devclass=0x00 > devsubclass=0x00 release=0x0200 sernum="087663165D8139E6" intclass=0x08 > intsubclass=0x06 on uhub4 > > > 1. Could I know which exact program print above line on /dev/devctl ? > > 2. I want to print another line with "daN" as the device-name, where N is > 0 to 9, with minimum vendor and product ids once the allocated device-name > is known for USB Mass Storage devices. Your additional ideas/feedback/help > is most welcomed. > There is a typing mistake: "After an USB thumb drive id pluged in" should be corrected as "After an USB thumb drive is plugged in". Very sorry for the mistake. Btw, I have started looking at umass.c and will have a look at later at usb.c of /usr/src/sys/dev/usb/. Any help is still very much appreciated. Best regards Sagara