Date: Mon, 14 Dec 1998 03:12:51 -0800 From: Mike Smith <mike@smith.net.au> To: Q <q@fan.net.au> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Documentation on writing Loadable modules for 3.0 anyone? Message-ID: <199812141112.DAA00456@dingo.cdrom.com> In-Reply-To: Your message of "Wed, 09 Dec 1998 14:49:08 %2B1000." <Pine.BSF.4.02.9812091439350.23582-100000@gromit.fan.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812141112.DAA00456>