Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 2009 07:35:09 -0500
From:      "Sagara Wijetunga" <sagara@tomahawk.com.sg>
To:        freebsd-current@freebsd.org
Cc:        Hans Petter Selasky <hselasky@c2i.net>
Subject:   Is extra USB event possible in FreeBSD 8?
Message-ID:  <20090714123509.16504.qmail@us1.tomahawkonline.net>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090714123509.16504.qmail>