summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-08-02 11:06:39 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-08-02 11:06:39 +0000
commitc7a08faaa110b22ebee27cae896bbb58d550e019 (patch)
tree1c0d39b54e55545384e0e9f77864e0939276735a /sys/kern
parent05672db570577a60f1cd6c1230a487a68ca9b346 (diff)
Sysctl for finding out how many pages there are in kmem_map.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_malloc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index 68a943c5e23..8cfd6e52a65 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_malloc.c,v 1.36 2001/07/26 14:23:31 art Exp $ */
+/* $OpenBSD: kern_malloc.c,v 1.37 2001/08/02 11:06:38 art Exp $ */
/* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */
/*
@@ -52,6 +52,8 @@
static struct vm_map_intrsafe kmem_map_store;
vm_map_t kmem_map = NULL;
+int nkmempages;
+
struct kmembuckets bucket[MINBUCKET + 16];
struct kmemstats kmemstats[M_LAST];
struct kmemusage *kmemusage;
@@ -451,6 +453,8 @@ kmeminit()
#ifdef MALLOC_DEBUG
debug_malloc_init();
#endif
+
+ nkmempages = npg;
}
/*