zpdesc_folio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ zpdesc_folio(9) πŸŽ€

okay bestie, welcome to the Kernel API Manual page for the folio that belongs to a zpdesc. yes, we're getting into it. stay with me πŸ’…


✨ NAME ✨

zpdesc_folio β€” the folio allocated for a zpdesc. that's the whole vibe. πŸ¦‹


🫢 SYNOPSIS 🫢

zpdesc_folio (zp );

πŸ’… ARGUMENTS πŸ’…

  • zp β€” the zpdesc in question. literally the star of the show ✨

🌸 DESCRIPTION 🌸

zpdescs are descriptors for zsmalloc memory. the memory itself is allocated as folios that contain the zsmalloc objects, and zpdesc uses specific fields in the first struct page of the folio β€” those fields are now accessed by struct zpdesc. slay, we love a dedicated struct πŸ‘‘

it is occasionally necessary to convert back to a folio in order to communicate with the rest of the mm. so please use this helper function instead of casting yourself, because the implementation may change in the future. no cap β€” don't hand-roll the cast, bestie 😭

🫢 friendly reminder: helper function > your own DIY cast. the implementation is allowed to glow up later, and your hand-written cast will not get the memo πŸ’€

πŸ‘€ SEE ALSO πŸ‘€


made with love in ./mm Β· October 2026 πŸ’–πŸ§šπŸ’œ

πŸ“¦ where this page comes from