zs_create_pool(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

zs_create_pool β€” Creates an allocation pool to work from. ✨

welcome to the Kernel API Manual, bestie! this is the zs_create_pool(9) page, and it's giving β€œmake your pool before you do literally anything else with zsmalloc” energy πŸ‘‘

🧚 SYNOPSIS 🧚

struct zs_pool * zs_create_pool (const char *name );

🌸 ARGUMENTS 🌸

  • name β€” the pool name to be created. you're naming your little allocation pool, cute πŸŽ€

πŸ”₯ DESCRIPTION πŸ”₯

okay so literally first things first: this function must be called before anything when you're using the zsmalloc allocator. not later, not whenever, before anything. periodt πŸ’…

On success, a pointer to the newly created pool is returned. otherwise? you get NULL. that's the vibe check 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./mm/zsmalloc.c β€” go check out obj_to_location(9), location_to_obj(9), zs_lookup_class_index(9), zs_huge_class_size(9), and zs_malloc(9) 🫢


signed off from ./mm, October 2026, page zs_create_pool(9) β€” mwah πŸ’–πŸ’…

πŸ“¦ where this page comes from