mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
fix(mm): Add inline aliases for heap size metrics
This commit is contained in:
1 parent
eed9f5afff
commit
ae5f4a96c4
1 file changed
+4
@@ -15,4 +15,8 @@ size_t heap_get_used_bytes(void);
|
|||||||
size_t heap_get_free_bytes(void);
|
size_t heap_get_free_bytes(void);
|
||||||
size_t heap_get_total_bytes(void);
|
size_t heap_get_total_bytes(void);
|
||||||
|
|
||||||
|
static inline size_t kmalloc_get_used(void) { return heap_get_used_bytes(); }
|
||||||
|
static inline size_t kmalloc_get_free(void) { return heap_get_free_bytes(); }
|
||||||
|
static inline size_t kmalloc_get_total(void) { return heap_get_total_bytes(); }
|
||||||
|
|
||||||
#endif // _MM_KMALLOC_H
|
#endif // _MM_KMALLOC_H
|
||||||
Reference in new issue
Block a user