devd + driver load by plugged device class how to ?

M. Warner Losh imp at bsdimp.com
Sun Apr 17 10:11:23 PDT 2005


In message: <1113740156.1018.6.camel at localhost>
            Vladimir Grebenschikov <vova at fbsd.ru> writes:
: Is there way to configure devd (or other daemon) to load appropriate
: driver by class, when device detected on bus, like:

Yes.  That's what nomatch events are for.  The default devd.conf
momatch entries in it.

: load ukbd.ko when USB keyboard plugged (same for other USB ums, ulpt,
: umass, etc)

usb doesn't support reprobing correctly yet, so this isn't possible
until it does.

: load atacard.ko, when ATA disk inserted into PCMCI slot

nomatch 10 {
	match "bus" "pccard[0-9]+];
	match "function_type" "4";
	action "kldload atacard";
}

: load if_wi.ko when WLan card inserted into PCMCI slot 

This device supports a large number of devices, so the list is rather
long...

Warner


More information about the freebsd-mobile mailing list