5 struct mp_block
*next_block
;
8 uintmax_t space
[FLEX_ARRAY
]; /* more */
12 struct mp_block
*mp_block
;
15 * The amount of available memory to grow the pool by.
16 * This size does not include the overhead for the mp_block.
20 /* The total amount of memory allocated by the pool. */
25 * Alloc memory from the mem_pool.
27 void *mem_pool_alloc(struct mem_pool
*pool
, size_t len
);
30 * Allocate and zero memory from the memory pool.
32 void *mem_pool_calloc(struct mem_pool
*pool
, size_t count
, size_t size
);