folioq_folio_size(9)
π 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 π
- kernel file
./include/linux/folio_queue.hπ folioq_init(9)folioq_nr_slots(9)folioq_count(9)folioq_full(9)folioq_is_marked(9)folioq_mark(9)folioq_unmark(9)folioq_is_marked2(9)folioq_mark2(9)folioq_unmark2(9)folioq_append(9)folioq_append_mark(9)folioq_folio(9)folioq_folio_order(9)folioq_clear(9)
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
- 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