From owner-freebsd-questions@FreeBSD.ORG Tue Mar 23 20:45:24 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29B2216A4CE; Tue, 23 Mar 2004 20:45:24 -0800 (PST) Received: from priv-edtnes14-hme0.telusplanet.net (outbound03.telus.net [199.185.220.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC13543D4C; Tue, 23 Mar 2004 20:45:23 -0800 (PST) (envelope-from cpressey@catseye.mine.nu) Received: from catseye.biscuit.boo ([154.5.85.228]) by priv-edtnes14-hme0.telusplanet.netSMTP <20040324044523.TFED10219.priv-edtnes14-hme0.telusplanet.net@catseye.biscuit.boo>; Tue, 23 Mar 2004 21:45:23 -0700 Date: Tue, 23 Mar 2004 20:51:03 -0800 From: Chris Pressey To: Greg 'groggy' Lehey Message-Id: <20040323205103.749a6ec5.cpressey@catseye.mine.nu> In-Reply-To: <20040324010447.GK40835@wantadilla.lemis.com> References: <20040324010447.GK40835@wantadilla.lemis.com> Organization: Cat's Eye Technologies X-Mailer: Sylpheed version 0.9.9 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: b1henning@hotmail.com cc: freebsd-questions@freebsd.org Subject: Re: kernel module X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 04:45:24 -0000 On Wed, 24 Mar 2004 11:34:47 +1030 Greg 'groggy' Lehey wrote: > On Tuesday, 23 March 2004 at 13:26:32 -0600, Brian Henning wrote: > > Greetings: > > > > Could someone explain howto move something that is part of the > > kernel and make it a kernel module? > > for example the pcm, /modules/pcm.ko > > This is probably something for the -hackers list, though you're likely > to get an answer like "read the code of an existing module and figure > it out for yourself". Unfortunately, I don't know of any > documentation, though there could be some. Although I can't answer the question (as it's fairly general and I'm sure it varies depending on exactly what part of the kernel you want to move into a kernel module), these docs may help: http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/ http://ezine.daemonnews.org/200010/blueprints.html http://www.itsx.com/hal2001/fbsdfun.html -Chris