RTEMS CPU Kit with SuperCore  4.11.3
Functions
rtl-alloc-heap.c File Reference

RTEMS Run-Time Linker Allocator for the standard heap. More...

#include <stdlib.h>
#include "rtl-alloc-heap.h"
Include dependency graph for rtl-alloc-heap.c:

Functions

void rtems_rtl_alloc_heap (bool allocate, rtems_rtl_alloc_tag_t tag, void **address, size_t size)
 Allocator handler for the standard libc heap. More...
 

Detailed Description

RTEMS Run-Time Linker Allocator for the standard heap.

Function Documentation

◆ rtems_rtl_alloc_heap()

void rtems_rtl_alloc_heap ( bool  allocate,
rtems_rtl_alloc_tag_t  tag,
void **  address,
size_t  size 
)

Allocator handler for the standard libc heap.

Parameters
allocationIf true the request is to allocate memory else free.
tagThe type of allocation request.
addressPointer to the memory address. If an allocation the value is unspecific on entry and the allocated address or NULL on exit. The NULL value means the allocation failed. If a delete or free request the memory address is the block to free. A free request of NULL is silently ignored.
sizeThe size of the allocation if an allocation request and not used if deleting or freeing a previous allocation.

Referenced by rtems_rtl_alloc_initialise().