Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Apr 2001 19:04:54 +0200
From:      Nicolas Souchu <nsouch@fr.alcove.com>
To:        Alex <d_f0rce@gmx.de>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Is it ok to compile a device driver as a module though no load_function is declared in DRIVER_MODULE()?
Message-ID:  <20010430190454.A1750@koka.alcove-fr>
In-Reply-To: <NEBBIKIHMLCDHCFEOMAHMEEBCBAA.d_f0rce@gmx.de>; from d_f0rce@gmx.de on Mon, Apr 16, 2001 at 03:42:34PM %2B0200
References:  <NEBBIKIHMLCDHCFEOMAHMEEBCBAA.d_f0rce@gmx.de>

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

-- 
Nicolas.Souchu@fr.alcove.com
Alcôve - Open Source Software Engineer - http://www.alcove.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010430190454.A1750>