Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jan 2000 14:42:34 -0500 (EST)
From:      "Matthew N. Dodd" <winter@jurai.net>
To:        Nikolai Saoukh <nms@ethereal.ru>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: kldloaded driver not called at load time
Message-ID:  <Pine.BSF.4.21.0001311439380.479-100000@sasami.jurai.net>
In-Reply-To: <20000131175533.DBCA81F1@Brigada-A.Ethereal.RU>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0001311439380.479-100000>