summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/kvm_private.h
diff options
context:
space:
mode:
authorart <art@openbsd.org>2002-06-08 22:31:24 +0000
committerart <art@openbsd.org>2002-06-08 22:31:24 +0000
commit2d420eaf8b38f5f0d8bbf9cb967a2ccf3028e93b (patch)
tree63d73870317617db6d5e94d67224c3d021752e7d /lib/libkvm/kvm_private.h
parentSysctl for getting process arguments and environment. (diff)
downloadwireguard-openbsd-2d420eaf8b38f5f0d8bbf9cb967a2ccf3028e93b.tar.xz
wireguard-openbsd-2d420eaf8b38f5f0d8bbf9cb967a2ccf3028e93b.zip
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.h5
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)
};
/*