|
Retro Rocket Kernel
BASIC-Powered Operating System
|
#include <stddef.h>Data Structures | |
| struct | header_t |
| struct | footer_t |
| struct | heap_t |
Macros | |
| #define | HEAP_MAGIC 0xDEADDEADDEADDEADull |
Functions | |
| void * | kmalloc (uint64_t size) |
| void * | kmalloc_ext (uint64_t size, uint8_t align, uint64_t *phys) |
| void | kfree (const void *addr) |
| heap_t * | create_heap (uint64_t addr, uint64_t end, uint64_t max, uint64_t min, uint8_t user, uint8_t rw) |
| void | init_heap () |
| void | print_heapinfo () |
| void | preboot_fail (const char *msg) |
| void * | kcalloc (size_t num, size_t size) |
| void * | krealloc (void *ptr, size_t new_size) |
| uint32_t | kmalloc_low (uint32_t size) |
| uint64_t | get_free_memory () |
| uint64_t | get_used_memory () |
| uint64_t | get_total_memory () |
| #define HEAP_MAGIC 0xDEADDEADDEADDEADull |
| heap_t* create_heap | ( | uint64_t | addr, |
| uint64_t | end, | ||
| uint64_t | max, | ||
| uint64_t | min, | ||
| uint8_t | user, | ||
| uint8_t | rw | ||
| ) |
| uint64_t get_free_memory | ( | ) |
| uint64_t get_total_memory | ( | ) |
| uint64_t get_used_memory | ( | ) |
| void init_heap | ( | ) |
| void* kcalloc | ( | size_t | num, |
| size_t | size | ||
| ) |
| void kfree | ( | const void * | addr | ) |
| void* kmalloc | ( | uint64_t | size | ) |
| void* kmalloc_ext | ( | uint64_t | size, |
| uint8_t | align, | ||
| uint64_t * | phys | ||
| ) |
| uint32_t kmalloc_low | ( | uint32_t | size | ) |
| void* krealloc | ( | void * | ptr, |
| size_t | new_size | ||
| ) |
| void preboot_fail | ( | const char * | msg | ) |
| void print_heapinfo | ( | ) |