From owner-freebsd-questions Thu Aug 29 14:50:35 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 8AFEF37B400 for ; Thu, 29 Aug 2002 14:50:33 -0700 (PDT) Received: from mail2.hd.intel.com (hdfdns02.hd.intel.com [192.52.58.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB7B143E4A for ; Thu, 29 Aug 2002 14:50:31 -0700 (PDT) (envelope-from pavan.balaji@intel.com) Received: from fmsmsxvs041.fm.intel.com (fmsmsxvs041.fm.intel.com [132.233.42.126]) by mail2.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 g7TLoUY24616 for ; Thu, 29 Aug 2002 21:50:31 GMT Received: from fmsmsx29.FM.INTEL.COM ([132.233.42.29]) by fmsmsxvs041.fm.intel.com (NAVGW 2.5.2.11) with SMTP id M2002082914494114051 ; Thu, 29 Aug 2002 14:49:41 -0700 Received: by fmsmsx29.fm.intel.com with Internet Mail Service (5.5.2653.19) id ; Thu, 29 Aug 2002 14:50:29 -0700 Message-ID: <3D386AED1B47D411A94300508B11F18704AD69CC@fmsmsx116.fm.intel.com> From: "Balaji, Pavan" To: "'Lowell Gilbert'" , freebsd-questions@freebsd.org, "Balaji, Pavan" Subject: RE: Virtual Address to Physical Address translation Date: Thu, 29 Aug 2002 14:50:16 -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 Thanx. vtophys() was indeed what I was looking for. I have one more question. Now, that I have the physical address (which is locked, pinned, protected from swapping out), I need to write data to this. I can't use normal copy functions, can I? Cause they expect the address to be the virtual address. Thanx, Pavan Balaji, Intel Corporation Email: pavan.balaji@intel.com "Only the Paranoid Survive" -- Andy Grove > -----Original Message----- > From: Lowell Gilbert > [mailto:freebsd-questions-local@be-well.no-ip.com] > Sent: Thursday, August 29, 2002 12:45 PM > To: freebsd-questions@freebsd.org; pavan.balaji@intel.com > Subject: Re: Virtual Address to Physical Address translation > > > "Balaji, Pavan" writes: > > > I believe BSD provides a function to do this translation... > Some onw knows > > of this? > > Yes, of course. They even wrote a nice developers' handbook. > http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/ > > vtophys() is what you're looking for. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message