folioq_count(9)
πΈ folioq_count(9) πΈ
okay bestie, welcome to the folioq_count(9) page from the Kernel API Manual β yes, that's the manual name, folded in right here at the top like a little name tag. This one is short, sweet, and very βtiny function, important vibe check.β π
β¨ NAME β¨
folioq_count β query the occupancy of a folio queue segment π
π SYNOPSIS π
unsigned int folioq_count (struct folio_queue *folioq );
π«Ά ARGUMENTS π«Ά
folioqβ the segment to query, aka the one getting the vibe check. π
π₯ DESCRIPTION π₯
Okay so this function queries the number of folios that have been added to a folio queue segment. That's the whole mission. β¨
Important lore, no cap: this count is not decreased as folios are removed from a segment. So once they've been added, the number stays put β it's not a live occupancy meter that drops when folios leave. π«Ά
π SEE ALSO π
The kernel file is ./include/linux/folio_queue.h, and the whole squad is:
folioq_init(9)folioq_nr_slots(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_folio_size(9)folioq_clear(9)
Sign-off: mwah π this page is stamped with source/version ./include/linux and date October 2026 β iconic, periodt. π
π¦ 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