Subject: Re: Phy addr from Virtual Addr (vm_map_entry) ?
To: Antti Kantee <pooka@cs.hut.fi>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-kern
Date: 04/13/2007 09:43:26
On Apr 13, 2007, at 7:01 AM, Antti Kantee wrote:
> On Fri Apr 13 2007 at 19:25:41 +0530, Nalin Gupta wrote:
>> Hello,
>>
>> Is there any api, to determine physical addr from vm_map_entry of a
>> user process vm space ?
>
> pmap_extract(), see pmap(9). You need the process pmap, which you can
> find from proc->vmspace->vm_map->pmap.
Note that the physical page can also change underneath you at any time
unless you first wire the mapping.
-- thorpej