location_to_obj(9)
πΈ NAME πΈ
okay so bestie, this is location_to_obj(9) from the Kernel API Manual, and it does exactly one iconic thing: encode (<zpdesc>, <obj_idx>, <class_idx>) into an obj value. that's it, that's the whole assignment. π
β¨ SYNOPSIS β¨
unsigned long location_to_obj (struct zpdesc *zpdesc , unsigned int obj_idx , unsigned int class_idx );
π ARGUMENTS π
zpdescβ thezpdescobject that resides inzspage. lowkey important.obj_idxβ the object index. periodt.class_idxβ the size class index; it is ignored whenZS_OBJ_CLASS_BITS == 0. no cap, that's the rule.
π¦ SEE ALSO π¦
- Kernel file
./mm/zsmalloc.c obj_to_location(9)zs_lookup_class_index(9)zs_huge_class_size(9)zs_malloc(9)zs_create_pool(9)
and that's the page, bestie β go off π source/version: ./mm; date: October 2026. slay π
π¦ 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