location_to_obj(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 β€” the zpdesc object that resides in zspage. lowkey important.
  • obj_idx β€” the object index. periodt.
  • class_idx β€” the size class index; it is ignored when ZS_OBJ_CLASS_BITS == 0. no cap, that's the rule.

πŸ¦‹ SEE ALSO πŸ¦‹


and that's the page, bestie β€” go off πŸ‘‘ source/version: ./mm; date: October 2026. slay πŸ’–

πŸ“¦ where this page comes from