.\" 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_ALLOC" "9" "09 October 2005" "" ""
.SH NAME
mempool_alloc \- allocate an element from a specific memory pool
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void * mempool_alloc (mempool_t * \fIpool\fB, unsigned int __nocast \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\fIgfp_mask\fB\fR
the usual allocation bitmask.
.SH "DESCRIPTION"
.PP
this function only sleeps if the alloc_fn function sleeps or
returns NULL. Note that due to preallocation, this function
*never* fails when called from process contexts. (it might
fail if called from an IRQ context.)