folio_nr_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… folio_nr_pages β€” Kernel API Manual ✨

okay so bestie, welcome to folio_nr_pages(9), the littlest icon in the kernel API manual. she tells you how many pages are in a folio, and honestly? she ate. πŸŽ€


🌸 NAME 🌸

folio_nr_pages β€” literally just the number of pages in the folio. that's it. that's the whole gig. no cap. πŸ’–


✨ SYNOPSIS ✨

unsigned long folio_nr_pages (const struct folio *folio );

look at her. one argument. clean lines. main character energy fr fr. πŸ¦‹


🫢 ARGUMENTS 🫢

  • folio β€” the folio. yes, that's the entire description. she's the folio. the folio in question. the one we're counting pages for. iconic minimalism, ngl. πŸ’…

πŸ”₯ RETURN πŸ”₯

A positive power of two. 🌈

like, a positive one, and a power of two β€” so 1, 2, 4, 8, 16, etc. not zero, not three, not some cursed middle value. don't be weird about it. ⭐


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/linux/mm.h, plus this whole friend group right here β€” every single one, no skipping, we do not leave anyone on read: πŸ’œ

like a whole group chat of nine-section girlies. go say hi. πŸ˜­πŸ’–


reminder bestie: this page lives at ./include/linux, dated October 2026, and the manual it's chilling in is the Kernel API Manual. take care of her. πŸ§šπŸ’œ

anyway that's the whole page, ily, go count some pages πŸ“πŸ’…πŸ«Ά

πŸ“¦ where this page comes from