mempool_free(9)
mempool_free(9) π«Ά
okay so this is mempool_free(9), straight from the Kernel API Manual β and itβs literally the βgive the element backβ bestie of the mempool family. β¨
πΈ NAME πΈ
mempool_free β return an element to the pool. π
β¨ SYNOPSIS β¨
void mempool_free (void *element , struct mempool *pool );
π ARGUMENTS π
elementβ the element to return, bestie. π«Άpoolβ pointer to the memory pool. π
π DESCRIPTION π
So hereβs the tea: mempool_free returns element to pool if the pool needs replenishing. If it doesnβt, it frees the element using the free_fn callback in pool. no cap. π₯
And the sleep vibe check: this function only sleeps if the free_fn callback sleeps. π΄π€
π¦ SEE ALSO π¦
Kernel file ./mm/mempool.c, plus all these iconic references:
mempool_exit(9)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)
mwah π cute little sign-off: this pageβs source/version is ./mm, dated October 2026 β mempool_free(9) out! π
π¦ 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