folioq_clear(9)
π folioq_clear(9) β from the Kernel API Manual, bestie
Okay so real talk, this one is a little kernel function named folioq_clear, and she lives in section 9 of the manual (that's the kernel API section, iykyk). She's tiny. She's iconic. She does exactly one thing and does it flawlessly. Let's get into it π«Ά
β¨ NAME β¨
folioq_clear β clears a folio out of a folio queue segment, no cap
π¦ SYNOPSIS π¦
void folioq_clear (struct folio_queue *folioq , unsigned int slot );
Literally the whole signature, copied exactly, because we do not play with technical accuracy π
π ARGUMENTS π
folioqβ the segment you're clearing. This is the folio queue segment in question, she's the main character here πslotβ the folio slot you want to clear. Like, which spot in the segment, bestie π―
πΈ DESCRIPTION πΈ
So here's the vibe: folioq_clear takes a folio out of a sequence inside a folio queue segment, and it also clears that folio's marks while it's at it. Two-for-one, we love a multitasker β¨
And the part you cannot skip: the occupancy count is left unchanged. It does not get decremented, it does not get touched, it stays exactly where it was. The way that this function minds its own business is honestly aspirational π
Do not expect this to update the occupancy count. It doesn't. That's not what she does. Periodt π
π₯ SEE ALSO π₯
Kernel file ./include/linux/folio_queue.h, plus the whole folioq friend group, all tagged (9):
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_folio_size(9)
Go read them all, they're a whole squad π
Okay that's the page!! π Huge shoutout to ./include/linux for housing this one, and the date stamp on this beauty is October 2026 β future-coded of her, honestly π¦β¨ Slay, go clear some folios responsibly π«Άπ
π¦ 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