zs_create_pool(9)
π 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
- 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