mem_malloc_mempool_ext() function
Mallocs a block of memory and initializes an extended mempool to use it.
Arguments
num_blocks
The total number of memory blocks in the mempool.
block_size
The size of each mempool entry.
name
The name to give the mempool.
out_buf
On success, this points to the malloced memory. Pass NULL if you don't need this information.
Return value
0 on success; OS_ENOMEM on malloc failure; Other OS code on unexpected error.
mem_malloc_mempool_ext() calls 3 functions:
![]()
mem_malloc_mempool_ext()
mem_malloc_mempool_ext():
![]()
mem_malloc_mempool_ext()