diff options
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/sys/vmstat.h | 2 | ||||
-rw-r--r-- | sys/include/vm/physmem.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/sys/vmstat.h b/sys/include/sys/vmstat.h index 127bc96..b7faeb2 100644 --- a/sys/include/sys/vmstat.h +++ b/sys/include/sys/vmstat.h @@ -37,10 +37,12 @@ * * @mem_avail: Available memory in MiB * @mem_used: Allocated memory in MiB + * @mem_total: Total system memory in MiB */ struct vm_stat { uint32_t mem_avail; uint32_t mem_used; + size_t mem_total; }; #endif /* !_VM_STAT_H_ */ diff --git a/sys/include/vm/physmem.h b/sys/include/vm/physmem.h index e16bcf9..3f1da61 100644 --- a/sys/include/vm/physmem.h +++ b/sys/include/vm/physmem.h @@ -34,6 +34,7 @@ uint32_t vm_mem_used(void); uint32_t vm_mem_free(void); +size_t vm_mem_total(void); void vm_physmem_init(void); uintptr_t vm_alloc_frame(size_t count); |