From owner-freebsd-arch Fri Feb 15 18:52:51 2002 Delivered-To: freebsd-arch@freebsd.org Received: from antipater.hosting.pacbell.net (antipater.hosting.pacbell.net [216.100.99.13]) by hub.freebsd.org (Postfix) with ESMTP id 478B937B486 for ; Fri, 15 Feb 2002 18:52:35 -0800 (PST) Received: from misha1 (adsl-64-172-38-74.dsl.snfc21.pacbell.net [64.172.38.74]) by antipater.hosting.pacbell.net id VAA04131; Fri, 15 Feb 2002 21:52:34 -0500 (EST) [ConcentricHost SMTP Relay 1.14] Message-ID: <009b01c1b692$1beea670$b210a8c0@netscreen5> Reply-To: "mike varga" From: "mike varga" To: Subject: virtual address from physical Date: Fri, 15 Feb 2002 18:31:58 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0098_01C1B64F.0D41EB20" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0098_01C1B64F.0D41EB20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Does anyone know of an easy way to get a process's virtual address from a physical address? Linux has functions that allow programmers to go both ways. --virtual to physical=20 --physical to virtual Are there analogs in=20 FreeBSD? I am aware of vtophys(), but can not find anything=20 that goes the other way. I could search a process's page table for a base/len combination that my physical address falls within=20 and then add the offset? ------=_NextPart_000_0098_01C1B64F.0D41EB20 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Does anyone know of an = easy
way to get a process's = virtual
address from a physical = address?
 
Linux has functions that = allow
programmers to go both = ways.
--virtual to physical
--physical to virtual
 
Are there analogs in
FreeBSD?
 
I am aware of vtophys(),
but can not find anything
that goes the other way.
 
I could search a process's
page table for a base/len = combination
that my physical address falls within =
and then add the = offset?
------=_NextPart_000_0098_01C1B64F.0D41EB20-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message