1MEMPOOL_RESIZE(9)         Memory Management in Linux         MEMPOOL_RESIZE(9)
2
3
4

NAME

6       mempool_resize - resize an existing memory pool
7

SYNOPSIS

9       int mempool_resize(mempool_t * pool, int new_min_nr, gfp_t gfp_mask);
10

ARGUMENTS

12       pool
13           pointer to the memory pool which was allocated via mempool_create.
14
15       new_min_nr
16           the new minimum number of elements guaranteed to be allocated for
17           this pool.
18
19       gfp_mask
20           the usual allocation bitmask.
21

DESCRIPTION

23       This function shrinks/grows the pool. In the case of growing, it cannot
24       be guaranteed that the pool will be grown to the new size immediately,
25       but new mempool_free calls will refill it.
26
27       Note, the caller must guarantee that no mempool_destroy is called while
28       this function is running.  mempool_alloc & mempool_free might be called
29       (eg. from IRQ contexts) while this function executes.
30
32Kernel Hackers Manual 2.6.         June 2019                 MEMPOOL_RESIZE(9)
Impressum