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

This source file contains the implementation of _Heap_Greedy_allocate(), _Heap_Greedy_allocate_all_except_largest(), and _Heap_Greedy_free(). More...

#include <rtems/score/heapimpl.h>

Functions

Heap_Block_Heap_Greedy_allocate (Heap_Control *heap, const uintptr_t *block_sizes, size_t block_count)
 Greedily allocates and empties the heap.
 
Heap_Block_Heap_Greedy_allocate_all_except_largest (Heap_Control *heap, uintptr_t *allocatable_size)
 Greedily allocates all blocks except the largest free block.
 
void _Heap_Greedy_free (Heap_Control *heap, Heap_Block *blocks)
 Frees blocks of a greedy allocation.
 

Detailed Description

This source file contains the implementation of _Heap_Greedy_allocate(), _Heap_Greedy_allocate_all_except_largest(), and _Heap_Greedy_free().