On Mon, Apr 16, 2001 at 03:42:34PM +0200, Alex wrote:
> Hi,
> 
> i've got a little question about device drivers for FreeBSD.
> 
> I'm testing my device driver by compiling it as a module and
> kldloading it. But as I don't want to use it as a module in the
> future I declared DRIVER_MODULE(..) as follows:
> 
> DRIVER_MODULE( ir, isa, ir_isa_driver, ir_devclass, 0, 0);
> 
> As I read on deamonnews that one has to declare a load_function
> to use a driver as a KLD I'm not sure if the above DRIVER_MODULE()
> is valid for testing.

You don't need the load_function with the DRIVER_MODULE declaration.
The entry points for you module are probe and identify then attach
and detach. That's all.

-- 
[EMAIL PROTECTED]
Alcôve - Open Source Software Engineer - http://www.alcove.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to