From owner-freebsd-current@FreeBSD.ORG Sun Apr 17 17:11:22 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB68D16A4CE; Sun, 17 Apr 2005 17:11:22 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7898743D5A; Sun, 17 Apr 2005 17:11:22 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j3HHA9p6044129; Sun, 17 Apr 2005 11:10:10 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 17 Apr 2005 11:10:15 -0600 (MDT) Message-Id: <20050417.111015.77928634.imp@bsdimp.com> To: vova@fbsd.ru From: "M. Warner Losh" In-Reply-To: <1113740156.1018.6.camel@localhost> References: <1113740156.1018.6.camel@localhost> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: mobile@freebsd.org cc: current@freebsd.org Subject: Re: devd + driver load by plugged device class how to ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 17 Apr 2005 17:11:23 -0000 In message: <1113740156.1018.6.camel@localhost> Vladimir Grebenschikov 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