RTEMS 6.1-rc5
Loading...
Searching...
No Matches
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 <rtems/score/apimutex.h>

Functions

void rtems_rtl_alloc_heap (rtems_rtl_alloc_cmd cmd, rtems_rtl_alloc_tag tag, void **address, size_t size)
 

Detailed Description

RTEMS Run-Time Linker Allocator for the standard heap.

Function Documentation

◆ rtems_rtl_alloc_heap()

void rtems_rtl_alloc_heap ( rtems_rtl_alloc_cmd  cmd,
rtems_rtl_alloc_tag  tag,
void **  address,
size_t  size 
)

Allocator handler for the standard libc heap.

Parameters
cmdThe allocation command.
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.