1MEMPOOL_DESTROY(9) Memory Management in Linux MEMPOOL_DESTROY(9)
23
4
NAME
6mempool_destroy - deallocate a memory pool
7
SYNOPSIS
9void mempool_destroy(mempool_t * pool);
10
ARGUMENTS
12pool
13pointer to the memory pool which was allocated via mempool_create.
14
DESCRIPTION
16this function only sleeps if the free_fn function sleeps. The caller
17has to guarantee that all elements have been returned to the pool (ie:
18freed) prior to calling mempool_destroy.
19
COPYRIGHT
21Kernel Hackers Manual 2.6. November 2011 MEMPOOL_DESTROY(9)