zpdesc_folio(9)
π 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β thezpdescin 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 π
- Kernel file
./mm/zpdesc.h page_zpdesc(9)
made with love in ./mm Β· October 2026 ππ§π
π¦ 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