From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 23 10:52:33 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 9F05E16A4CE for ; Thu, 23 Sep 2004 10:52:33 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BECA43D41 for ; Thu, 23 Sep 2004 10:52:33 +0000 (GMT) (envelope-from niels.heinen@gmail.com) Received: by mproxy.gmail.com with SMTP id 77so386064rnl for ; Thu, 23 Sep 2004 03:52:32 -0700 (PDT) Received: by 10.38.79.75 with SMTP id c75mr3681338rnb; Thu, 23 Sep 2004 03:52:32 -0700 (PDT) Received: by 10.38.83.41 with HTTP; Thu, 23 Sep 2004 03:52:32 -0700 (PDT) Message-ID: Date: Thu, 23 Sep 2004 12:52:32 +0200 From: Niels Heinen To: Andrey Simonenko In-Reply-To: <20040923101953.GA463@pm514-9.comsys.ntu-kpi.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20040923101953.GA463@pm514-9.comsys.ntu-kpi.kiev.ua> 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 Reply-To: Niels Heinen List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 10:52:33 -0000 > > I'm not sure that you get some performance with this method, usually > an application allocates memory, makes syscall and tells how many bytes > the kernel (the module) can store in this memory. But I don't see > the complete picture, so may be you can't use this standard approach. > Thats the way I have implemented it now. But because the application (test.c ;p ) doesn't know the packet size its currently using too large memory buffers. Thanks for the info, I'll have a look at those function ! Niels