From 8eba06a381117500d20dc3d4aea1af8f26dc065f Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Sat, 8 Jun 2002 22:31:26 +0000 Subject: 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. --- lib/libkvm/kvm_private.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libkvm/kvm_private.h') 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) }; /* -- cgit v1.2.3