From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 30 02:08:20 2003 Return-Path: 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 DF4EE37B401 for ; Mon, 30 Jun 2003 02:08:20 -0700 (PDT) Received: from vsmtp4.tin.it (vsmtp4.tin.it [212.216.176.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C1C243FA3 for ; Mon, 30 Jun 2003 02:08:20 -0700 (PDT) (envelope-from flag@tin.it) Received: from southcross.skynet.org (80.182.24.251) by vsmtp4.tin.it (6.7.016) id 3EF8651A0021C694 for freebsd-hackers@FreeBSD.ORG; Mon, 30 Jun 2003 11:08:18 +0200 Received: by southcross.skynet.org (Postfix, from userid 1001) id 9B0B6610E; Mon, 30 Jun 2003 11:09:19 +0200 (CEST) Date: Mon, 30 Jun 2003 11:09:19 +0200 From: Paolo Pisati To: FreeBSD_Hackers Message-ID: <20030630090919.GA1922@southcross.skynet.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Useless-Header: Look ma, it's a # sign! X-Operating-System: FreeBSD southcross.skynet.org 5.1-CURRENT FreeBSD 5.1-CURRENT Subject: [newbie] Allocating memory in kernel land X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2003 09:08:21 -0000 Hi guys, as the subject says, i'm a newbie in kernel and i'm facing the task to "port" a userland program in kernel land (actually inside a netgraph node) and i was wondering how to threat the memory inside the kernel: are there any important things i should be aware of? like memory/stack limit, syscall, things thats shouldn't be, and so on. thanks in advance. -- Paolo GUFI: http://www.gufi.org