diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-06-08 22:31:26 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-06-08 22:31:26 +0000 |
commit | 8eba06a381117500d20dc3d4aea1af8f26dc065f (patch) | |
tree | 62327bd559a77957200c248e9da175c4d3d496d9 /lib/libkvm/kvm_private.h | |
parent | be4ffb2a10c754590ba8e54a20c870c8746bb107 (diff) |
Add a flag - KVM_NO_FILES which tells kvm_openfiles to not
open any files, just return an kvm handle that we can use to some
of the functions.
Diffstat (limited to 'lib/libkvm/kvm_private.h')
-rw-r--r-- | lib/libkvm/kvm_private.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libkvm/kvm_private.h b/lib/libkvm/kvm_private.h index 2b88a2e8977..2eff0a80071 100644 --- a/lib/libkvm/kvm_private.h +++ b/lib/libkvm/kvm_private.h @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_private.h,v 1.6 2002/02/16 21:27:26 millert Exp $ */ +/* $OpenBSD: kvm_private.h,v 1.7 2002/06/08 22:31:25 art Exp $ */ /* $NetBSD: kvm_private.h,v 1.7 1996/05/05 04:32:15 gwr Exp $ */ /*- @@ -50,7 +50,6 @@ struct __kvm { char *errp; /* XXX this can probably go away */ char errbuf[_POSIX2_LINE_MAX]; DB *db; -#define ISALIVE(kd) ((kd)->vmfd >= 0) int pmfd; /* physical memory file (or crashdump) */ int vmfd; /* virtual memory file (-1 if crashdump) */ int swfd; /* swap file (e.g., /dev/drum) */ @@ -85,6 +84,8 @@ struct __kvm { */ struct pglist *vm_page_buckets; int vm_page_hash_mask; + int alive; /* Dead or alive. */ +#define ISALIVE(kd) ((kd)->alive) }; /* |