#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
◆ kfree()
◆ kheap_init()
| int kheap_init |
( |
void * | start_address, |
|
|
uint32_t | size ) |
◆ kmalloc()
| void * kmalloc |
( |
size_t | size | ) |
|
Allocates specified size in heap.
- Parameters
-
| size | Requested allocation size |
- Returns
- void* Pointer to allocated memory, 0 if errored
References heap_malloc(), kernel_heap, and size.
◆ kzalloc()
| void * kzalloc |
( |
size_t | size | ) |
|
Allocated specified size in heap and zeroes it.
- Parameters
-
| size | Requested allocation swize |
- Returns
- void* Pointer to allocated memory, 0 if errored
References kmalloc(), memset(), and size.