aboutsummaryrefslogtreecommitdiff
path: root/sys/include/vm
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-05-23 01:55:41 -0400
committerIan Moffett <ian@osmora.org>2024-05-23 03:18:41 -0400
commit05eb9f648569d708e167272e04437466a2f0b594 (patch)
tree7649e305ff71dce593b7426fee0b676994aa080a /sys/include/vm
parente0b34937b1bd674c05d609331501f81740fbb87f (diff)
kernel: vm: Keep track of vmobj count
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/vm')
-rw-r--r--sys/include/vm/obj.h1
-rw-r--r--sys/include/vm/vm.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/vm/obj.h b/sys/include/vm/obj.h
index ef07a1e..e4258ac 100644
--- a/sys/include/vm/obj.h
+++ b/sys/include/vm/obj.h
@@ -54,6 +54,7 @@ struct vm_object {
} \
} while (0);
+size_t vm_obj_count(void);
int vm_obj_init(struct vm_object **res, struct vnode *vnode);
int vm_obj_destroy(struct vm_object *obj);
diff --git a/sys/include/vm/vm.h b/sys/include/vm/vm.h
index f6fba66..1c23b8a 100644
--- a/sys/include/vm/vm.h
+++ b/sys/include/vm/vm.h
@@ -55,6 +55,7 @@ struct vm_range {
struct vm_memstat {
struct physmem_stat pmem_stat;
+ size_t vmobj_cnt;
};
/*