接着上个

This commit is contained in:
2026-04-23 20:00:47 +08:00
parent 088dab5a72
commit 43557b6d71
91 changed files with 23911 additions and 0 deletions

View 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