summaryrefslogtreecommitdiffstats
path: root/include/kvm.h
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-01-23 04:58:35 +0000
committerdillon <dillon@FreeBSD.org>1999-01-23 04:58:35 +0000
commit3434445aa2f8508be3dcb72c7092d471505bfa63 (patch)
tree70d02cb5ad973f27dc8b6bb98129d89cac78360b /include/kvm.h
parent97e2cc89ef8a6c1f1a354ae29869c626cf8f617e (diff)
downloadFreeBSD-src-3434445aa2f8508be3dcb72c7092d471505bfa63.zip
FreeBSD-src-3434445aa2f8508be3dcb72c7092d471505bfa63.tar.gz
Oops, forgot this. Needed by libkvm.
Diffstat (limited to 'include/kvm.h')
-rw-r--r--include/kvm.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/kvm.h b/include/kvm.h
index 9e0d921..e48194c 100644
--- a/include/kvm.h
+++ b/include/kvm.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)kvm.h 8.1 (Berkeley) 6/2/93
- * $Id$
+ * $Id: kvm.h,v 1.6 1998/12/16 18:59:47 bde Exp $
*/
#ifndef _KVM_H_
@@ -59,12 +59,25 @@ typedef struct __kvm kvm_t;
struct kinfo_proc;
struct proc;
+typedef struct kvm_swap {
+ char ksw_devname[32];
+ int ksw_used;
+ int ksw_total;
+ int ksw_flags;
+ int ksw_reserved1;
+ int ksw_reserved2;
+} *kvm_swap_t;
+
+#define SWIF_DUMP_TREE 0x0001
+#define SWIF_DEV_PREFIX 0x0002
+
__BEGIN_DECLS
int kvm_close __P((kvm_t *));
char **kvm_getargv __P((kvm_t *, const struct kinfo_proc *, int));
char **kvm_getenvv __P((kvm_t *, const struct kinfo_proc *, int));
char *kvm_geterr __P((kvm_t *));
int kvm_getloadavg __P((kvm_t *, double [], int));
+int kvm_getswapinfo __P((kvm_t *, struct kvm_swap *, int, int));
char *kvm_getfiles __P((kvm_t *, int, int, int *));
struct kinfo_proc *
kvm_getprocs __P((kvm_t *, int, int, int *));
OpenPOWER on IntegriCloud