mempool_destroy(9)
π mempool_destroy(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this is the page for mempool_destroy, and yes it's exactly the little cleanup queen you think it is π§Ήπ
πΈ NAME πΈ
mempool_destroy β deallocate a memory pool π«Ά
β¨ SYNOPSIS β¨
void mempool_destroy (struct mempool *pool );
π ARGUMENTS π
poolβ pointer to the memory pool which was allocated viamempool_create. like, the pool has to be one that came frommempool_create, okay? don't be out here handing it random pointers π
π DESCRIPTION π
Free all reserved elements in pool and pool itself. that's it, that's the whole vibe β everything inside goes, and then the pool goes too π¦
and about the sleeping thing: this function only sleeps if the free_fn function sleeps. no cap. so if your free_fn is a sleepy little thing, then yeah, this call might nap too π΄ otherwise it's not out here catching Zs on its own.
ngl this is the "and scene" moment for your pool β it frees the reserved elements and the pool itself, so don't go touching pool afterwards, bestie π
π SEE ALSO π
kernel file ./mm/mempool.c π and the whole friend group:
mempool_exit(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)
okay bye bestie, go free that pool responsibly π«Άβ¨ this page came from ./mm, dated October 2026, and it is mempool_destroy(9) β periodt π
π
π¦ 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