From owner-freebsd-questions Sat Jul 27 3:16:54 2002 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 D90FC37B400 for ; Sat, 27 Jul 2002 03:16:52 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6F4043E3B for ; Sat, 27 Jul 2002 03:16:51 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk ([IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.5/8.12.5) with ESMTP id g6RAGnXZ033351; Sat, 27 Jul 2002 11:16:49 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.5/8.12.5/Submit) id g6RAGibe033350; Sat, 27 Jul 2002 11:16:44 +0100 (BST) Date: Sat, 27 Jul 2002 11:16:44 +0100 From: Matthew Seaman To: Ed Yu Cc: freebsd-questions@FreeBSD.ORG Subject: Re: converting linux kernel modules to bsd modules Message-ID: <20020727101644.GB32984@happy-idiot-talk.infracaninophi> References: <20020726231211.56809.qmail@web20706.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020726231211.56809.qmail@web20706.mail.yahoo.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jul 26, 2002 at 04:12:11PM -0700, Ed Yu wrote: > Is this the right email list for this question? > Well, subject said it all. I need to a conversion for > a module. Is there any tool to do some work for me (or > even allow the module to just run?) or do I need to > read up on BSD modules (I'm new at FreeBSD > programming) and do the work myself? Any pointer would > be helpful. It's good enough, although most of the hard core kernel types hang out on freebsd-hackers@freebsd.org. In general, there is no automatic way to port a Linux kernel module to FreeBSD. The Linux kernel and the FreeBSD kernel are very different animals. You'll need to make yourself into a competent FreeBSD kernel programmer, which is quite a tall order if you've never done anything of that order before. If you're familiar with the internals of other OSes, you shouldn't find it too dificult. The good news is that having all the source from a Linux kernel module should tell you practically everything you need to know to write an equivalent BSD module. If you're intending to release the module, be careful about licensing. In order for a module to be included into the core system, it has to be released under an appropriate BSD style license --- not the GPL. Which means that you can't reuse any GPL'd code from the Linux module. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message