summaryrefslogtreecommitdiff
path: root/sys/vm/vm_stat.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-08-12 21:49:20 -0400
committerIan Moffett <ian@osmora.org>2025-08-12 22:02:13 -0400
commit9a652bf4cfc943a5a59d23ea19c1efb202af5286 (patch)
treee30fffa19143440da0d60cbbe8c5c741bdb483bf /sys/vm/vm_stat.c
parentfeab44d461465f19a8fda7250a422ff75fef3929 (diff)
kernel: vm: Add total system memory in vmstat
This commit introduces reporting of total system memory supported through the vmstat subsystem Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/vm/vm_stat.c')
-rw-r--r--sys/vm/vm_stat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/vm_stat.c b/sys/vm/vm_stat.c
index 8cf2fe4..3e39047 100644
--- a/sys/vm/vm_stat.c
+++ b/sys/vm/vm_stat.c
@@ -71,6 +71,7 @@ vm_stat_get(struct vm_stat *vmstat)
vmstat->mem_avail = vm_mem_free();
vmstat->mem_used = vm_mem_used();
+ vmstat->mem_total = vm_mem_total();
return 0;
}