From owner-freebsd-current Mon Nov 29 2:50:36 1999 Delivered-To: freebsd-current@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id E52FE14FE4 for ; Mon, 29 Nov 1999 02:50:34 -0800 (PST) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (root@d60-025.leach.ucdavis.edu [169.237.60.25]) by relay.nuxi.com (8.9.3/8.9.3) with ESMTP id CAA16428; Mon, 29 Nov 1999 02:50:34 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.9.3/8.9.1) id CAA67500; Mon, 29 Nov 1999 02:50:33 -0800 (PST) (envelope-from obrien) Date: Mon, 29 Nov 1999 02:50:33 -0800 From: "David O'Brien" To: Donn Miller Cc: current@freebsd.org Subject: Re: Compiling drivers as lkm's Message-ID: <19991129025033.A67479@dragon.nuxi.com> Reply-To: obrien@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from dmmiller@cvzoom.net on Mon, Nov 29, 1999 at 04:23:08AM -0500 X-Operating-System: FreeBSD 4.0-CURRENT Organization: The NUXI BSD group X-PGP-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Keyid: 34F9F9D5 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Is there any kernel config option that can be used to link a driver to the > kernel dynamically (LKM) instead of statically? LKM's are out-dated. We now have the 2nd generation KLD (Kernel Loader) modules. > Of course, if anyone has any links or info on how to write a driver > period, I'd like to know. /usr/share/examples/kld/* > It seems like the best method to write, test, and debug a new driver would > be to use lkm's, since you could just use kldload() and kldunload() to > test the driver-in-progress instead of just rebooting. Yes. -- -- David (obrien@NUXI.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message