.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "MEMPOOL_RESIZE" "" "06 October 2005" "" ""
.SH NAME
mempool_resize \- resize an existing memory pool
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int mempool_resize (mempool_t * \fIpool\fB, int \fInew_min_nr\fB, int \fIgfp_mask\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIpool\fB\fR
pointer to the memory pool which was allocated via
\fBmempool_create\fR\&.
.TP
\fB\fInew_min_nr\fB\fR
the new minimum number of elements guaranteed to be
allocated for this pool.
.TP
\fB\fIgfp_mask\fB\fR
the usual allocation bitmask.
.SH "DESCRIPTION"
.PP
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 \fBmempool_free\fR calls will refill it.
.PP
Note, the caller must guarantee that no mempool_destroy is called
while this function is running. \fBmempool_alloc\fR & \fBmempool_free\fR
might be called (eg. from IRQ contexts) while this function executes.