From owner-freebsd-questions Wed Oct 18 21:20:47 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id VAA21393 for questions-outgoing; Wed, 18 Oct 1995 21:20:47 -0700 Received: from dg-rtp.dg.com (dg-rtp.rtp.dg.com [128.222.1.2]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id VAA21376 for ; Wed, 18 Oct 1995 21:20:41 -0700 Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA00828; Thu, 19 Oct 1995 00:20:09 -0400 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Thu, 19 Oct 1995 00:20 EDT Received: from lakes (lakes [192.96.3.39]) by ponds.UUCP (8.6.11/8.6.5) with ESMTP id VAA23485; Wed, 18 Oct 1995 21:28:56 -0400 Received: (from rivers@localhost) by lakes (8.6.11/8.6.9) id VAA07736; Wed, 18 Oct 1995 21:29:38 -0400 Date: Wed, 18 Oct 1995 21:29:38 -0400 From: Thomas David Rivers Message-Id: <199510190129.VAA07736@lakes> To: late.e-technik.uni-erlangen.de!eilts@dg-rtp.dg.com, wollman@lcs.mit.edu Subject: Re: lkm programming Cc: questions@freebsd.org Content-Type: text Content-Length: 912 Sender: owner-questions@freebsd.org Precedence: bulk > > > > Can anybody point me to some direction where I might get information on > > > implementing loadable kernel modules? > > > > Your best bet is probably to look at the sources of the ones that > > already exist. Be aware that there is quite a bit of magic going on > > with the VFS LKMs, so you should probably look at something simpler > > like the discard driver. > > > The lack of any documentation regarding kernel programming is one > of the biggest disadvantures of FreeBSD. > You should find the text: "The Design and Implementation of the 4.3BSD UNIX Operating System" by Leffler, McKusick, Karels and Quarterman; published by Addison-Wesley (reprinted in 1990) (ISBN 0-201-06196-1) to be an excellent start. However, BSD has since moved to 4.4 - so there are some changes. FreeBSD has also made additions (e.g. LKMs), which would not be covered in that text. - Dave Rivers -