Subject: Re: quick uvm question - getting a process's page.
To: Simon Burge <simonb@netbsd.org>
From: Chuck Silvers <chuq@chuq.com>
List: tech-kern
Date: 05/04/2000 09:01:31
check out the way that the ptrace code uses procfs_domem().
you can probably do the same thing.

-Chuck


On Wed, May 03, 2000 at 05:12:04PM +1000, Simon Burge wrote:
> Folks,
> 
> Is there an existing interface in uvm where I can say:
> 
> 	gimme the page (or location of a page) at a particular VA for a
> 	given process?
> 
> This is in relation the ps argv stuff I've been looking at.  The current
> libkvm strategy is to walk the page tables for the process, work out
> if it's in kmem or on swap, and grab the data.  From a "process is
> completed swapped out" POV, would it be better to keep with a similar
> strategy to this (perhaps using something like uvm_swap_get() to fetch
> data from swap) or just page in the pages that are needed?
> 
> Simon.