mempool_exit(9)
π mempool_exit(9) π
okay bestie, welcome to the Kernel API Manual entry for mempool_exit(9) β this one is short, sweet, and lowkey important. π
β¨ NAME β¨
mempool_exit β exit a mempool initialized with mempool_init()
β¨ SYNOPSIS β¨
void mempool_exit (struct mempool *pool );
β¨ ARGUMENTS β¨
poolβ pointer to the memory pool which was initialized withmempool_init.
β¨ DESCRIPTION β¨
Free all reserved elements in pool and pool itself. This function only sleeps if the free_fn function sleeps. π΄
May be called on a zeroed but uninitialized mempool (i.e. allocated with kzalloc). so yes, that zeroed-but-not-yet-initialized vibe is valid π
β¨ SEE ALSO β¨
Kernel file ./mm/mempool.c, plus the whole squad: mempool_destroy(9), mempool_init(9), mempool_create_node(9), mempool_resize(9), mempool_alloc_bulk(9), mempool_alloc(9), mempool_alloc_preallocated(9), mempool_free_bulk(9), mempool_free(9) π«Ά
xoxo, your kernel bestie β live from ./mm, October 2026 ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms