RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Typedefs | Functions | Variables

This header file defines interfaces to support and use dynamic memory allocation. More...

#include <rtems.h>
#include <rtems/bspIo.h>
#include <rtems/libcsupport.h>
#include <stdint.h>

Go to the source code of this file.

Typedefs

typedef void *(* rtems_heap_extend_handler) (Heap_Control *heap, size_t alloc_size)
 
typedef void(* rtems_malloc_dirtier_t) (void *, size_t)
 

Functions

void _Malloc_Initialize (void)
 
void * rtems_heap_extend_via_sbrk (Heap_Control *heap, size_t alloc_size)
 RTEMS Extend Heap via Sbrk.
 
void * rtems_heap_null_extend (Heap_Control *heap, size_t alloc_size)
 
void rtems_heap_set_sbrk_amount (ptrdiff_t sbrk_amount)
 
void rtems_heap_sbrk_greedy_allocate (Heap_Control *heap, size_t alloc_size)
 Greedy allocate that empties the sbrk memory.
 
void rtems_malloc_dirty_memory (void *start, size_t size)
 Dirty Memory Function.
 
int rtems_memalign (void **pointer, size_t alignment, size_t size)
 RTEMS Variation on Aligned Memory Allocation.
 
void * rtems_heap_allocate_aligned_with_boundary (size_t size, uintptr_t alignment, uintptr_t boundary) RTEMS_MALLOCLIKE RTEMS_ALLOC_SIZE(1) RTEMS_ALLOC_ALIGN(2) RTEMS_WARN_UNUSED_RESULT
 Allocates a memory area of size size bytes from the heap.
 
void * rtems_malloc (size_t size) RTEMS_MALLOCLIKE RTEMS_ALLOC_SIZE(1) RTEMS_WARN_UNUSED_RESULT
 Allocates a memory area of the specified size from the heap.
 
void * rtems_calloc (size_t nelem, size_t elsize) RTEMS_MALLOCLIKE RTEMS_ALLOC_SIZE_2(1
 Allocates a memory area for the specified count of elements from the heap.
 
rtems_status_code rtems_heap_extend (void *area_begin, uintptr_t area_size)
 Extends the memory available for the heap using the memory area starting at area_begin of size area_size bytes.
 
void * rtems_heap_greedy_allocate (const uintptr_t *block_sizes, size_t block_count)
 Greedy allocate that empties the heap.
 
void * rtems_heap_greedy_allocate_all_except_largest (uintptr_t *allocatable_size)
 Greedy allocate all blocks except the largest free block.
 
void rtems_heap_greedy_free (void *opaque)
 Frees space of a greedy allocation.
 

Variables

Heap_ControlRTEMS_Malloc_Heap
 C program heap control.
 
const rtems_heap_extend_handler rtems_malloc_extend_handler
 
rtems_malloc_dirtier_t rtems_malloc_dirty_helper
 
void RTEMS_WARN_UNUSED_RESULT
 

Detailed Description

This header file defines interfaces to support and use dynamic memory allocation.