folioq_folio_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– folioq_folio_size β€” your girl's guide to the kernel API manual ✨

okay so real talk, this one is a tiny little function from the Kernel API Manual, and honestly? it's giving "small but mighty" πŸŽ€

🌸 NAME 🌸

folioq_folio_size β€” bestie, this literally gets you the size of a folio from a folio queue segment. that's it, that's the whole job πŸ’…


✨ SYNOPSIS ✨

size_t folioq_folio_size (const struct folio_queue *folioq , unsigned
       int slot );

like, you hand it a folioq and a slot, and it hands you back a size_t. no cap, that's the vibe πŸ¦‹


🫢 ARGUMENTS 🫢

  • folioq β€” the segment you wanna access, periodt. this is the folio queue segment in question πŸ‘‘
  • slot β€” the folio slot you're accessing inside it. which one? that one. the slot. πŸŽ€

πŸ’œ DESCRIPTION πŸ’œ

so basically: this retrieves the size of the folio in the specified slot from a folio queue segment ✨ like, you point at a slot, you get a size back. slay.

⚠️ but listen β€” no bounds check is made. none. zero. it does not check. so be normal about which slot you pass πŸ™ˆ

and here's the little plot twist: if the slot hasn't been added into yet, the size returned will be PAGE_SIZE. yep. that's the default energy. that's what you get for peeking at an empty slot, iykyk πŸ’€


🌈 SEE ALSO 🌈

the whole folioq friend group, honestly β€” go say hi to all of them πŸ§šπŸ’–


and that's the page!! mwah πŸ’‹ this one's sourced from ./include/linux and dated October 2026 β€” so like, future girlie behavior, we love to see it β­πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from