mempool_exit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 with mempool_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