From owner-freebsd-hackers Thu Oct 15 19:45:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA21838 for freebsd-hackers-outgoing; Thu, 15 Oct 1998 19:45:31 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA21828; Thu, 15 Oct 1998 19:45:27 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id MAA08315; Fri, 16 Oct 1998 12:15:05 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id MAA02867; Fri, 16 Oct 1998 12:14:59 +0930 (CST) Message-ID: <19981016121458.U468@freebie.lemis.com> Date: Fri, 16 Oct 1998 12:14:58 +0930 From: Greg Lehey To: Charlie Root , FreeBSD Hackers Subject: Re: How cam I be writing LKM ? References: <199810161012.KAA07104@krasnavi.scn.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199810161012.KAA07104@krasnavi.scn.ru>; from Charlie Root on Fri, Oct 16, 1998 at 10:12:31AM +0000 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [following up to -hackers] On Friday, 16 October 1998 at 10:12:31 +0000, Charlie Root wrote: Please don't send mail as root. We like to know who you are (and where you are; what part of Russia has a time zone offset of 0?). > > Answer please. Where can I get the documentation about writing LKM modules. This is an in-depth technical question, which belongs on -hackers, not -doc (which handles documenting the system). The simple answer is: there is no documentation except for a couple of man pages and the source code of other LKMs. That's how I started, and it wasn't too difficult. > Must I use standart libraris or kernel's internal calls ? It's a kernel module, so you need to use kernel calls. > I am beginner in writing to FreeBSD and Unix, but it is intresting for me > to undestand this question. Thank you. The best thing to understand is: now is a very bad time to write an LKM. They'll be going away and replaced by KLDs when the kernel goes to ELF (in the next few weeks). Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message