mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-24 11:14:01 +00:00
接着上个
This commit is contained in:
19
clks.local.bak/include/clks/heap.h
Normal file
19
clks.local.bak/include/clks/heap.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef CLKS_HEAP_H
|
||||
#define CLKS_HEAP_H
|
||||
|
||||
#include <clks/types.h>
|
||||
|
||||
struct clks_heap_stats {
|
||||
usize total_bytes;
|
||||
usize used_bytes;
|
||||
usize free_bytes;
|
||||
u64 alloc_count;
|
||||
u64 free_count;
|
||||
};
|
||||
|
||||
void clks_heap_init(void);
|
||||
void *clks_kmalloc(usize size);
|
||||
void clks_kfree(void *ptr);
|
||||
struct clks_heap_stats clks_heap_get_stats(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user