mempool_resize (9) - Linux Man Pages
mempool_resize: resize an existing memory pool
mempool_resize - resize an existing memory pool
*pool, int new_min_nr);
- pointer to the memory pool which was allocated via mempool_create.
- the new minimum number of elements guaranteed to be allocated for this pool.
This function shrinks/grows the pool. In the case of growing, it cannot be guaranteed that the pool will be grown to the new size immediately, but new mempool_free calls will refill it. This function may sleep.