RTEMS
|
Heap Handler implementation. More...
#include <rtems/score/heapimpl.h>
#include <rtems/score/threadimpl.h>
#include <rtems/score/interr.h>
#include <string.h>
Go to the source code of this file.
Functions | |
bool | _Heap_Get_first_and_last_block (uintptr_t heap_area_begin, uintptr_t heap_area_size, uintptr_t page_size, uintptr_t min_block_size, Heap_Block **first_block_ptr, Heap_Block **last_block_ptr) |
Gets the first and last block for the heap area. More... | |
uintptr_t | _Heap_Initialize (Heap_Control *heap, void *heap_area_begin_ptr, uintptr_t heap_area_size, uintptr_t page_size) |
Initializes the heap control block. More... | |
static void | _Heap_Block_split (Heap_Control *heap, Heap_Block *block, Heap_Block *next_block, Heap_Block *free_list_anchor, uintptr_t alloc_size) |
static Heap_Block * | _Heap_Block_allocate_from_begin (Heap_Control *heap, Heap_Block *block, Heap_Block *next_block, Heap_Block *free_list_anchor, uintptr_t alloc_size) |
static Heap_Block * | _Heap_Block_allocate_from_end (Heap_Control *heap, Heap_Block *block, Heap_Block *next_block, Heap_Block *free_list_anchor, uintptr_t alloc_begin, uintptr_t alloc_size) |
Heap_Block * | _Heap_Block_allocate (Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size) |
Allocates the memory area. starting at alloc_begin of size alloc_size bytes in the block block. More... | |
Heap Handler implementation.
Definition in file heap.c.