MEMPOOL_ALLOC
Section: (9)
Updated: 09 October 2005
Index
Return to Main Contents
NAME
mempool_alloc - allocate an element from a specific memory pool
SYNOPSIS
"SYNOPSIS"
void * mempool_alloc (mempool_t * pool, unsigned int __nocast gfp_mask);
ARGUMENTS
- pool
-
pointer to the memory pool which was allocated via
mempool_create.
- gfp_mask
-
the usual allocation bitmask.
DESCRIPTION
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.)
Index
- NAME
-
- SYNOPSIS
-
- ARGUMENTS
-
- DESCRIPTION
-
This document was created by
man2html,
using the manual pages.
Time: 00:02:29 GMT, October 09, 2005