33 |
#include <kvm.h> |
#include <kvm.h> |
34 |
#include <nlist.h> |
#include <nlist.h> |
35 |
|
|
36 |
kvm_t *kd; |
extern kvm_t *kd; |
37 |
|
|
38 |
/* |
/* |
39 |
* This is the symbol table we use so that the kernel knows what we want to |
* This is the symbol table we use so that the kernel knows what we want to |
40 |
* grab from it according to a couple of defines and a reference structure. |
* grab from it according to a couple of defines and a reference structure. |
41 |
*/ |
*/ |
42 |
|
|
43 |
#define N_IFNET 0 |
#define N_IFNET 0 |
44 |
#define N_MBPOOL 1 |
#define N_MBPOOL 1 |
45 |
#define N_MCLPOOL 2 |
#define N_MCLPOOL 2 |
46 |
#define N_FSCALE 3 |
#define N_FSCALE 3 |
47 |
#define N_CCPU 4 |
#define N_CCPU 4 |
48 |
#define N_PHYSMEM 5 |
#define N_PHYSMEM 5 |
49 |
#define N_MAXSLP 6 |
#define N_MAXSLP 6 |
50 |
|
|
51 |
struct nlist mm_nl[] = { |
extern struct nlist mm_nl[] = { |
52 |
{ "_ifnet" }, { "_mbpool" }, { "_mclpool" }, { "_fscale" }, { "__ccpu" }, |
{ "_ifnet" }, { "_mbpool" }, { "_mclpool" }, { "_fscale" }, { "__ccpu" }, |
53 |
{ "_physmem" }, { "_maxslp"}, { NULL } |
{ "_physmem" }, { "_maxslp"}, { NULL } |
54 |
}; |
}; |