version 1.8, 1997/08/12 16:27:01 |
version 1.9, 2000/05/26 02:42:22 |
|
|
char *errp; /* XXX this can probably go away */ |
char *errp; /* XXX this can probably go away */ |
char errbuf[_POSIX2_LINE_MAX]; |
char errbuf[_POSIX2_LINE_MAX]; |
DB *db; |
DB *db; |
#define ISALIVE(kd) ((kd)->vmfd >= 0) |
|
int pmfd; /* physical memory file (or crashdump) */ |
int pmfd; /* physical memory file (or crashdump) */ |
int vmfd; /* virtual memory file (-1 if crashdump) */ |
int vmfd; /* virtual memory file (-1 if crashdump) */ |
int swfd; /* swap file (e.g., /dev/drum) */ |
int swfd; /* swap file (e.g., /dev/drum) */ |
int nlfd; /* namelist file (e.g., /vmunix) */ |
int nlfd; /* namelist file (e.g., /vmunix) */ |
|
char alive; /* live kernel? */ |
struct kinfo_proc *procbase; |
struct kinfo_proc *procbase; |
|
struct kinfo_proc2 *procbase2; |
u_long usrstack; /* address of end of user stack */ |
u_long usrstack; /* address of end of user stack */ |
u_long min_uva, max_uva; /* min/max user virtual address */ |
u_long min_uva, max_uva; /* min/max user virtual address */ |
int nbpg; /* page size */ |
int nbpg; /* page size */ |
|
|
int vm_page_hash_mask; |
int vm_page_hash_mask; |
}; |
}; |
|
|
|
/* Levels of aliveness */ |
|
#define KVM_ALIVE_DEAD 0 /* dead, working from core file */ |
|
#define KVM_ALIVE_FILES 1 /* alive, working from open kmem/drum */ |
|
#define KVM_ALIVE_SYSCTL 2 /* alive, sysctl-type calls only */ |
|
|
|
#define ISALIVE(kd) ((kd)->alive != KVM_ALIVE_DEAD) |
|
#define ISKMEM(kd) ((kd)->alive == KVM_ALIVE_FILES) |
|
#define ISSYSCTL(kd) ((kd)->alive == KVM_ALIVE_SYSCTL || ISKMEM(kd)) |
|
|
/* |
/* |
* Functions used internally by kvm, but across kvm modules. |
* Functions used internally by kvm, but across kvm modules. |
*/ |
*/ |