From 05eb9f648569d708e167272e04437466a2f0b594 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 23 May 2024 01:55:41 -0400 Subject: kernel: vm: Keep track of vmobj count Signed-off-by: Ian Moffett --- sys/include/vm/obj.h | 1 + sys/include/vm/vm.h | 1 + 2 files changed, 2 insertions(+) (limited to 'sys/include') 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; }; /* -- cgit v1.2.3