folioq_append_mark(9)
π folioq_append_mark(9) β from your friends over in the Kernel API Manual β¨
okay bestie, gather round, because this one is short and sweet and honestly kind of iconic π
πΈ NAME πΈ
folioq_append_mark β literally just adds a folio to a folio queue segment π that's the whole vibe.
π¦ SYNOPSIS π¦
unsigned int folioq_append_mark (struct folio_queue *folioq , struct
folio *folio );
so it hands you back an unsigned int, and it eats two things β the queue segment and the folio β that's it, no cap π«Ά
β¨ ARGUMENTS β¨
folioqβ the segment you're adding to, the main character of this operation πfolioβ the folio you're adding, the one sliding into the queue π§
π₯ DESCRIPTION π₯
okay so picture this: we're adding a folio to the tail of the sequence in a folio queue segment π it bumps the occupancy count up, and it returns the slot number for the folio that just got added β iykyk, that slot number is your little souvenir π
the folio size gets extracted and stored in the queue, the first mark is set, and the second and third marks are left unmodified π so don't come for marks two and three, they're minding their business.
β οΈ and here's the part where you gotta be a responsible adult, bestie: it's left up to the caller to check that the segment capacity will not be exceeded and to extend the queue. this function is not doing your homework for you π not a single capacity check in sight, fr fr. you check it, you extend it, then you call. periodt π
π SEE ALSO π
all my faves in one place, look at this lineup β
Kernel file ./include/linux/folio_queue.h plus:
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_folio(9)folioq_folio_order(9)folioq_folio_size(9)folioq_clear(9)
and that's the whole page, bestie π«Ά huge shoutout to the source directory ./include/linux and the date stamp October 2026, and yes the page answers to the name folioq_append_mark(9) β go forth and append 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