Rechercher une page de manuel
mempool_alloc
Langue: en
Version: June 2009 (debian - 07/07/09)
Section: 9 (Appels noyau Linux)
NAME
mempool_alloc - allocate an element from a specific memory poolSYNOPSIS
- void * mempool_alloc(mempool_t * pool, gfp_t 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.)
COPYRIGHT
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre