From owner-freebsd-current Mon Jan 31 11:42:45 2000 Delivered-To: freebsd-current@freebsd.org Received: from sasami.jurai.net (sasami.jurai.net [63.67.141.99]) by hub.freebsd.org (Postfix) with ESMTP id 2DDD414EDE for ; Mon, 31 Jan 2000 11:42:40 -0800 (PST) (envelope-from winter@jurai.net) Received: from localhost (winter@localhost) by sasami.jurai.net (8.9.3/8.8.7) with ESMTP id OAA10834; Mon, 31 Jan 2000 14:42:34 -0500 (EST) Date: Mon, 31 Jan 2000 14:42:34 -0500 (EST) From: "Matthew N. Dodd" To: Nikolai Saoukh Cc: freebsd-current@FreeBSD.ORG Subject: Re: kldloaded driver not called at load time In-Reply-To: <20000131175533.DBCA81F1@Brigada-A.Ethereal.RU> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 31 Jan 2000, Nikolai Saoukh wrote: > I am trying to make kldloadable driver. But none of functions are > called when I kldload it. Is this a bug or I am missing something > essential? You're missing something essential. The return values for the DEVICE_PROBE method should be 0 or negative for priority, or positive to indicate an error. if_tok.c:tok_probe() returns ENXIO which is in the return value you use for if_tok_isa.c:tok_isa_probe(). You should take a good look at /sys/dev/{ex,ep} for an example of how to accommodate PnP probes. -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | This Space For Rent | ISO8802.5 4ever | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message