devd usage

Patrick Lamaizière patfbsds+questions at davenulle.org
Sun Dec 17 10:57:07 PST 2006


Maxim Vetrov :
> Hi,

Hello,

>   I'm running 6.1 on Toshiba notebook SAtellite L100. Get stuck with
> auto config of wireless cardbus adapter (D-Link DWL-G650). I want to
> load kernel module (if_ath.ko) automatically when I insert it into the
> slot. I found that I need /etc/devd.conf to be configured properly.
> There is a Deqna example that is quite self-explaining excluding those
> magic numbers assigned to "manufacturer" and "product". Where I can get
> these?

I think with the devd's socket : 
By sample i insert my usb mouse :

# cat /var/run/devd.pipe
? at port=0 vendor=0x0458 product=0x0036 devclass=0x00 devsubclass=0x00 
release=0x0110 sernum="" on uhub1
+ums0 vendor=0x0458 product=0x0036 devclass=0x00 devsubclass=0x00 
release=0x0110 sernum="" intclass=0x03 intsubclass=0x01 at port=0 
interface=0 vendor=0x0458 product=0x0036 devclass=0x00 devsubclass=0x00 
release=0x0110 sernum="" intclass=0x03 intsubclass=0x01 on uhub1

There are two events here, first an unknown device is detected '?' and then 
a new device is inserted '+ums0'.
              
See man devctl

Regards.


More information about the freebsd-questions mailing list