Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Apr 2005 11:10:15 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        vova@fbsd.ru
Cc:        current@freebsd.org
Subject:   Re: devd + driver load by plugged device class how to ?
Message-ID:  <20050417.111015.77928634.imp@bsdimp.com>
In-Reply-To: <1113740156.1018.6.camel@localhost>
References:  <1113740156.1018.6.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <1113740156.1018.6.camel@localhost>
            Vladimir Grebenschikov <vova@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



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