From owner-freebsd-questions Fri Aug 30 11:29:13 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 4AB9237B449 for ; Fri, 30 Aug 2002 11:29:04 -0700 (PDT) Received: from mail1.hd.intel.com (hdfdns01.hd.intel.com [192.52.58.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 353A943E4A for ; Fri, 30 Aug 2002 11:29:03 -0700 (PDT) (envelope-from pavan.balaji@intel.com) Received: from fmsmsxvs040.fm.intel.com (fmsmsxvs040.fm.intel.com [132.233.42.124]) by mail1.hd.intel.com (8.11.6/8.11.6/d: solo.mc,v 1.42 2002/05/23 22:21:11 root Exp $) with SMTP id g7UIT1h09149 for ; Fri, 30 Aug 2002 18:29:01 GMT Received: from fmsmsx28.fm.intel.com ([132.233.42.28]) by fmsmsxvs040.fm.intel.com (NAVGW 2.5.2.11) with SMTP id M2002083011241627661 ; Fri, 30 Aug 2002 11:24:25 -0700 Received: by fmsmsx28.fm.intel.com with Internet Mail Service (5.5.2653.19) id ; Fri, 30 Aug 2002 11:25:04 -0700 Message-ID: <3D386AED1B47D411A94300508B11F18704AD69CE@fmsmsx116.fm.intel.com> From: "Balaji, Pavan" To: "'mark tinguely'" , freebsd-questions@FreeBSD.ORG, "Balaji, Pavan" Subject: RE: Virtual Address to Physical Address translation Date: Fri, 30 Aug 2002 11:24:58 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="ISO-8859-1" 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 Grrrr... The address I have is a PHYSICAL ADDRESS!!! I did the translation asynchronously. I need to know if there's any function through which I can copy from a virtual address space to a physical address space. Pavan Balaji, Intel Corporation Email: pavan.balaji@intel.com "Only the Paranoid Survive" -- Andy Grove > -----Original Message----- > From: mark tinguely [mailto:tinguely@web.cs.ndsu.nodak.edu] > Sent: Friday, August 30, 2002 1:02 PM > To: freebsd-questions@FreeBSD.ORG; pavan.balaji@intel.com > Subject: RE: Virtual Address to Physical Address translation > > > > > 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