From owner-freebsd-current Mon Jan 31 13:26:59 2000 Delivered-To: freebsd-current@freebsd.org Received: from mass.cdrom.com (21-106.012.popsite.net [216.126.164.106]) by hub.freebsd.org (Postfix) with ESMTP id 59AE014A11 for ; Mon, 31 Jan 2000 13:26:55 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Received: from mass.cdrom.com (localhost [127.0.0.1]) by mass.cdrom.com (8.9.3/8.9.3) with ESMTP id NAA01860; Mon, 31 Jan 2000 13:36:05 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Message-Id: <200001312136.NAA01860@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Nikolai Saoukh Cc: "Matthew N. Dodd" , freebsd-current@FreeBSD.ORG Subject: Re: kldloaded driver not called at load time In-reply-to: Your message of "Mon, 31 Jan 2000 23:23:29 +0300." <20000131202335.66CFC1F1@Brigada-A.Ethereal.RU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 31 Jan 2000 13:36:05 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > 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. > > THE PROBLEM is that tok_isa_probe is not called at all, > when driver kldloaded. Return value is irrelevant for this case. This is because the unknown driver is never revoked once it owns your device. It's a(nother) bug in the ISA bus code. 8( -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ msmith@freebsd.org \\ and he'll hate you for a lifetime. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message