From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 25 12:24:51 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0D8F16A41F for ; Sun, 25 Sep 2005 12:24:51 +0000 (GMT) (envelope-from dwmalone@maths.tcd.ie) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id DC90043D49 for ; Sun, 25 Sep 2005 12:24:48 +0000 (GMT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie ([134.226.81.10] helo=walton.maths.tcd.ie) by salmon.maths.tcd.ie with SMTP id ; 25 Sep 2005 13:24:47 +0100 (BST) Date: Sun, 25 Sep 2005 13:24:47 +0100 From: David Malone To: kamal kc Message-ID: <20050925122447.GA5489@walton.maths.tcd.ie> References: <20050925103151.68094.qmail@web35703.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050925103151.68094.qmail@web35703.mail.mud.yahoo.com> User-Agent: Mutt/1.5.6i Sender: dwmalone@maths.tcd.ie Cc: freebsd-hackers@freebsd.org Subject: Re: kernel hack X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Sep 2005 12:24:51 -0000 On Sun, Sep 25, 2005 at 03:31:51AM -0700, kamal kc wrote: > does anybody know what is the best way > to start kernel hack. It isn't quite clear what you mean, but presuming you mean "make a change to the FreeBSD kernel that you use" then: 1) First learn how to recompile your kernel. You can get details from the FreeBSD handbook (http://www.freebsd.org/handbook/). 2) Look under /usr/src/sys for the kernel source code. The main bit is in /usr/src/sys/kern, networking lives under /usr/src/sys/net* and so on. 3) Change the code you want and then recompie the kernel. Remember to keep an old kernel around incase you make a mistake. David.