Initial commit: SUB-OS 64-Bit Production Monolithic Operating System with LazyBox userland suite

This commit is contained in:
subhobhai943 committed 2026-08-16 21:23:52 +05:30
commit cd9c786d14
88 files changed
+7132

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#ifndef _MM_KMALLOC_H
#define _MM_KMALLOC_H
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
void heap_init(void);
void* kmalloc(size_t size);
void* kzalloc(size_t size);
void* krealloc(void* ptr, size_t new_size);
void kfree(void* ptr);
size_t heap_get_used_bytes(void);
size_t heap_get_free_bytes(void);
size_t heap_get_total_bytes(void);
#endif // _MM_KMALLOC_H