diff options
author | Ian Moffett <ian@osmora.org> | 2025-08-12 21:20:37 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-08-12 21:35:39 -0400 |
commit | d5b7792f4721b3215e948e6d6d91d287ce17b0f1 (patch) | |
tree | 132315346b7a62bed7fc0d7357d9c78b663ad14a /sys/kern | |
parent | 7007d5f7355451498ddbae1ad0165cce105b124b (diff) |
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 <ian@osmora.org>
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/init_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 <machine/cpu.h> #include <machine/cdefs.h> #include <vm/vm.h> +#include <vm/stat.h> #include <string.h> #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(); |