RTEMS 6.1-rc6
|
This source file contains the implementation of _Heap_Initialize() and _Heap_Block_allocate(). More...
#include <rtems/score/heapimpl.h>
#include <rtems/score/threadimpl.h>
#include <rtems/score/interr.h>
#include <string.h>
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. | |
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. | |
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. | |
This source file contains the implementation of _Heap_Initialize() and _Heap_Block_allocate().