|
GitOS
|
Functions | |
| int | kheap_init (void *start_address, uint32_t size) |
| Initializes kernel heap. | |
| void * | kmalloc (size_t size) |
| Allocates specified size in heap. | |
| void * | kzalloc (size_t size) |
| Allocated specified size in heap and zeroes it. | |
| void | kfree (void *ptr) |
| Frees specified pointer. | |
Variables | |
| heap | kernel_heap |
| heap_table | kernel_heap_table |
| void kfree | ( | void * | ptr | ) |
| int kheap_init | ( | void * | start_address, |
| uint32_t | size ) |
Initializes kernel heap.
| start_address | Starting address for heap allocation |
| size | Size of heap in bytes |
References HEAP_BLOCK_SIZE, heap_create(), HEAP_TABLE_ADDRESS, kernel_heap, kernel_heap_table, size, and start_address.
| void * kmalloc | ( | size_t | size | ) |
Allocates specified size in heap.
| size | Requested allocation size |
References heap_malloc(), kernel_heap, and size.
| void * kzalloc | ( | size_t | size | ) |
| heap kernel_heap |
| heap_table kernel_heap_table |