summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-05-23 03:21:16 -0400
committerIan Moffett <ian@osmora.org>2024-05-23 03:21:16 -0400
commit103f3e8ca854c5ee83e2d5525d574d10964b583a (patch)
tree475f79ce2d671ce8536c5ab6fb182384661a2c8c /sys/include
parenta6b64a1d8c6cdadece333edfcb0589d0711b5a58 (diff)
kernel: vm: Add alloc and avl stats
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/vm/physseg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/vm/physseg.h b/sys/include/vm/physseg.h
index af8cae8..956f82f 100644
--- a/sys/include/vm/physseg.h
+++ b/sys/include/vm/physseg.h
@@ -35,6 +35,8 @@
struct physmem_stat {
size_t reserved_kib; /* Reserved memory */
size_t total_kib; /* Total memory */
+ size_t avl_kib; /* Available memory */
+ size_t alloc_kib; /* Allocated physical memory */
};
void vm_physseg_init(void);