folio_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… folio_size(9) β€” the kernel API manual, bestie edition πŸŽ€

okay so this is folio_size(9), straight out of the Kernel API Manual, and it's literally the glow-up of "how many bytes are in this folio" β€” the whole manual entry, no skips, no cap.


✨ NAME ✨

folio_size β€” the number of bytes in a folio. that's it. that's the whole gig. πŸ’–


🌸 SYNOPSIS 🌸

size_t folio_size (const struct folio *folio );

like, you hand it a folio, it hands you back a size_t. iconic behavior honestly.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • folio β€” the folio. yes that's the whole description. she's the main character, she speaks for herself, iykyk 🫢

⭐ CONTEXT ⭐

okay listen up because this part actually matters bestie:

the caller should have a reference on the folio to prevent it from being split. like, keep her held tight so nobody tears her apart mid-whatever-you're-doing. 😭

it is not necessary for the folio to be locked. so like, chill on the locking, you don't need it here. 🧚


πŸ’œ RETURN πŸ’œ

the number of bytes in this folio. slay. that's the return value. πŸ”₯


🌈 SEE ALSO 🌈

the kernel file lives at ./include/linux/mm.h, and here is the entire friend group, all of them, every single one, no one left out of the group chat:


and that's the page!! πŸ’… this little angel comes from ./include/linux and the version stamp says October 2026 β€” so like, mark your calendar, she's from the future, periodt. πŸŽ€βœ¨πŸ‘‘
πŸ“¦ where this page comes from