From d5b7792f4721b3215e948e6d6d91d287ce17b0f1 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 12 Aug 2025 21:20:37 -0400 Subject: kernel: vm: Add virtual memory statistics Introduce the '/ctl/vm/stat' control file for providing virtual memory related statistics to userland. Signed-off-by: Ian Moffett --- sys/kern/init_main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/kern/init_main.c') diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 541355a..577b7ec 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -43,6 +43,7 @@ #include #include #include +#include #include #define _START_PATH "/usr/sbin/init" @@ -104,6 +105,9 @@ main(void) /* Init the virtual file system */ vfs_init(); + /* Init vmstats */ + vm_stat_init(); + /* Expose the console to devfs */ cons_expose(); -- cgit v1.2.3