From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 23 09:38:37 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 3FE2216A4CE for ; Thu, 23 Sep 2004 09:38:37 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5CF843D39 for ; Thu, 23 Sep 2004 09:38:36 +0000 (GMT) (envelope-from niels.heinen@gmail.com) Received: by mproxy.gmail.com with SMTP id 76so3076326rnl for ; Thu, 23 Sep 2004 02:38:33 -0700 (PDT) Received: by 10.38.74.50 with SMTP id w50mr4925229rna; Thu, 23 Sep 2004 02:38:32 -0700 (PDT) Received: by 10.38.83.41 with HTTP; Thu, 23 Sep 2004 02:38:28 -0700 (PDT) Message-ID: Date: Thu, 23 Sep 2004 11:38:28 +0200 From: Niels Heinen To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: 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 09:38:37 -0000 Hi all, I'm working on a kernel module that I want to use to copy packet data, obtained trough the phil hooks, to user space memory. 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. I'd really appriciate it if someone could explain how this should be done Thanks in advance, Niels