From owner-freebsd-hackers Mon Apr 30 10: 5: 2 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp.alcove.fr (smtp.alcove.fr [212.155.209.139]) by hub.freebsd.org (Postfix) with ESMTP id D06B837B422 for ; Mon, 30 Apr 2001 10:04:57 -0700 (PDT) (envelope-from nsouch@alcove.fr) Received: from koka.alcove-fr ([10.16.110.26] helo=koka.alcove-int ident=mail) by smtp.alcove.fr with esmtp (Exim 3.12 #1 (Debian)) id 14uH6V-0007MR-00; Mon, 30 Apr 2001 19:04:55 +0200 Received: from nsouch by koka.alcove-int with local (Exim 3.12 #1 (Debian)) id 14uH6U-0000Sk-00; Mon, 30 Apr 2001 19:04:54 +0200 Date: Mon, 30 Apr 2001 19:04:54 +0200 From: Nicolas Souchu To: Alex 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> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.4i In-Reply-To: ; from d_f0rce@gmx.de on Mon, Apr 16, 2001 at 03:42:34PM +0200 Organization: =?iso-8859-1?Q?Alc=F4ve=2C_http:=2F=2Fwww=2Ealcove=2Ecom?= Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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