Subject: Re: Phy addr from Virtual Addr (vm_map_entry) ?
To: Nalin Gupta <nalingupta2000@gmail.com>
From: Antti Kantee <pooka@cs.hut.fi>
List: tech-kern
Date: 04/13/2007 17:01:21
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.

-- 
Antti Kantee <pooka@iki.fi>                     Of course he runs NetBSD
http://www.iki.fi/pooka/                          http://www.NetBSD.org/
    "la qualité la plus indispensable du cuisinier est l'exactitude"