From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 24 10:04:08 2004 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 366AC16A4CE for ; Fri, 24 Sep 2004 10:04:08 +0000 (GMT) Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E87AA43D55 for ; Fri, 24 Sep 2004 10:04:07 +0000 (GMT) (envelope-from des@des.no) Received: from dwp.des.no (37.80-203-228.nextgentel.com [80.203.228.37]) by mail.broadpark.no (Postfix) with ESMTP id DC1E63ED6; Fri, 24 Sep 2004 12:04:48 +0200 (MEST) Received: by dwp.des.no (Postfix, from userid 2602) id E7F0EB85E; Fri, 24 Sep 2004 12:04:06 +0200 (CEST) To: Niels Heinen References: From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Fri, 24 Sep 2004 12:04:06 +0200 In-Reply-To: (Niels Heinen's message of "Thu, 23 Sep 2004 11:38:28 +0200") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-hackers@freebsd.org Subject: Re: Copy data from kernel to user space memory 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: Fri, 24 Sep 2004 10:04:08 -0000 Niels Heinen writes: > The module buffers packets and currently copies it into user memory > when its system call interface is used. At the moment my user space > application is the one that allocates the memory. I want the memory > to be allocated by the module in order to make things more efficient. You can't do that. The kernel allocates address space, not memory. It is up to the application to manage its address space as it sees fit. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no