Subject: Re: kvm
To: John R. Daily <jdaily@bbn.com>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 08/21/1997 06:29:44
On Tue, 19 Aug 1997 15:03:26 -0400 
 "John R. Daily" <jdaily@bbn.com> wrote:

 > I have several different kernel builds, and under certain
 > ones, I obtain the correct data with kvm_read, and under
 > others, my structure is filled with completely erroneous
 > values.

You're mis-matching nlist vs. memory image.  If you boot /netbsd.foo,
the /dev/kmem image corresponds to that one, not the default /netbsd.

The kvm open routines have the hooks to specify alternate nlists.

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                            Home: +1 408 866 1912
NAS: M/S 258-6                                       Work: +1 415 604 0935
Moffett Field, CA 94035                             Pager: +1 415 428 6939