From owner-freebsd-hackers Mon Dec 14 17:36:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA15961 for freebsd-hackers-outgoing; Mon, 14 Dec 1998 17:36:44 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (goldfish.pht.co.jp [210.171.55.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA15938 for ; Mon, 14 Dec 1998 17:36:41 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id DAA00456; Mon, 14 Dec 1998 03:12:51 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199812141112.DAA00456@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Q cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Documentation on writing Loadable modules for 3.0 anyone? In-reply-to: Your message of "Wed, 09 Dec 1998 14:49:08 +1000." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 14 Dec 1998 03:12:51 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > I am hoping some kind sole out there has some preliminary doco on writing > lkm's for FreeBSD 3.0. A little while ago I wrote a FreeBSD 2.2 device > driver for my packard bell infra-red receiver. It workes great, but I have > now migrated to 3.0 and need to port the lkm to the new interface. The best references are in src/sys/modules/* > Specifically I need to know how to use the ttpoll stuff now that > d_select_t isn't used anymore. I haven't spent much time on it yet, but I > think it's going to end up taking a while if I have to keep greping > through kernel source and other device drivers :) This has nothing to do with the new module code; this is the select-> poll change. Have a look at the code deltas in any other similar driver for that (it's pretty trivial). As for building a KLD modules vs. building an LKM, again look at the code deltas from any of the old LKMs in src/lkm to the corresponding version in src/sys/modules. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message