RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Functions
heap.c File Reference

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>

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.
 

Detailed Description

This source file contains the implementation of _Heap_Initialize() and _Heap_Block_allocate().