mem_malloc_mempool() function
Mallocs a block of memory and initializes a mempool to use it.
Arguments
mempool
The mempool to initialize.
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() is called by 1 function and calls 3 functions:
![]()
mem_malloc_mempool()
mem_malloc_mempool():
![]()
mem_malloc_mempool()