From owner-freebsd-questions Fri Aug 30 11: 2:28 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F04637B401 for ; Fri, 30 Aug 2002 11:02:25 -0700 (PDT) Received: from web.cs.ndsu.nodak.edu (web.cs.ndsu.NoDak.edu [134.129.125.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7A0D43E6E for ; Fri, 30 Aug 2002 11:02:24 -0700 (PDT) (envelope-from tinguely@web.cs.ndsu.nodak.edu) Received: (from tinguely@localhost) by web.cs.ndsu.nodak.edu (8.11.4/8.11.4) id g7UI2No38272; Fri, 30 Aug 2002 13:02:23 -0500 (CDT) (envelope-from tinguely) Date: Fri, 30 Aug 2002 13:02:23 -0500 (CDT) From: mark tinguely Message-Id: <200208301802.g7UI2No38272@web.cs.ndsu.nodak.edu> To: freebsd-questions@FreeBSD.ORG, pavan.balaji@intel.com Subject: RE: Virtual Address to Physical Address translation In-Reply-To: <3D386AED1B47D411A94300508B11F18704AD69CD@fmsmsx116.fm.intel.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > The physical address in my context is that of some user space of a certain > process. I need to place incoming data into it. Now, the incoming data is in > the kernel virtual space, so I need a mechanism to copy this data to the > physical pages of the user space (which are pinned). Both kernel and user space addresses are virtual addresses, but we don't need to go there. To copy from kernel space to user space, use the routine copyout(9). To copy from user space into kernel space, use copyin(9). --mark tinguely. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message