#include <rtl.h>
void *_calloc_box (
void* box_mem ); /* Start address of the memory pool */
Description
The _calloc_box function allocates a block of memory from
the memory pool that begins at the address box_mem and
initializes the entire memory block to 0.
The _calloc_box function is in the RL-RTX library. The
prototype is defined in rtl.h.
Note
You must initialize the memory pool using the _init_box
function before performing any other operation on the memory
pool.
The _calloc_box function is reentrant and thread-safe.
You can call it from the main function and from an IRQ interrupt
function with no restriction.
Return Value
The _calloc_box function returns a pointer to the allocated
block if a block was available. If there was no available block, it
returns a NULL pointer.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.