From owner-freebsd-current@FreeBSD.ORG Tue Jul 14 15:53:29 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4796B1065696 for ; Tue, 14 Jul 2009 15:53:29 +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 0F66D8FC27 for ; Tue, 14 Jul 2009 15:53:28 +0000 (UTC) (envelope-from sagara@tomahawk.com.sg) Received: (qmail 16505 invoked by alias); 14 Jul 2009 12:35:09 -0000 Message-ID: <20090714123509.16504.qmail@us1.tomahawkonline.net> From: "Sagara Wijetunga" To: freebsd-current@freebsd.org Date: Tue, 14 Jul 2009 07:35:09 -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 Cc: Hans Petter Selasky Subject: Is extra USB event possible in FreeBSD 8? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2009 15:53:29 -0000 Hi FreeBSD community I want to identify the device created (eg. da0, da1, etc.) for an USB Mass Storage device with its vendor and product identification numbers. Currently, FreeBSD 8 send following events to the devd on attach of an USB Mass Storage device: !system=DEVFS subsystem=CDEV type=CREATE cdev=usb/4.3.0 !system=DEVFS subsystem=CDEV type=CREATE cdev=ugen4.3 !system=DEVFS subsystem=CDEV type=CREATE cdev=usb/4.3.1 !system=DEVFS subsystem=CDEV type=CREATE cdev=usb/4.3.2 +ugen4.3 vendor=0x0718 product=0x0081 devclass=0x00 devsubclass=0x00 sernum="14925B00" at port=7 on ugen4.1 ? at port=7 interface=0 vendor=0x0718 product=0x0081 devclass=0x00 devsubclass=0x00 sernum="14925B00" intclass=0x08 intsubclass=0x06 on uhub4 +umass1 vendor=0x0718 product=0x0081 devclass=0x00 devsubclass=0x00 sernum="14925B00" intclass=0x08 intsubclass=0x06 at port=7 interface=0 vendor=0x0718 product=0x0081 devclass=0x00 devsubclass=0x00 sernum="14925B00" intclass=0x08 intsubclass=0x06 on uhub4 !system=DEVFS subsystem=CDEV type=CREATE cdev=pass4 !system=DEVFS subsystem=CDEV type=CREATE cdev=da4 !system=DEVFS subsystem=CDEV type=CREATE cdev=da4s1 !system=DEVFS subsystem=CDEV type=CREATE cdev=msdosfs/ Is it possible to get an extra event to the devd with the device created (eg. da0, da1, etc.) with its vendor and product identification numbers? eg. +da0 vendor=0x0718 product=0x0081 ... Kind regards Sagara