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/include/vm/physmem.h | |
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/include/vm/physmem.h')
-rw-r--r-- | sys/include/vm/physmem.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/vm/physmem.h b/sys/include/vm/physmem.h index ae11530..e16bcf9 100644 --- a/sys/include/vm/physmem.h +++ b/sys/include/vm/physmem.h @@ -32,6 +32,9 @@ #include <sys/types.h> +uint32_t vm_mem_used(void); +uint32_t vm_mem_free(void); + void vm_physmem_init(void); uintptr_t vm_alloc_frame(size_t count); void vm_free_frame(uintptr_t base, size_t count); |