bio_for_each_folio_all(9)
π bio_for_each_folio_all β Kernel API Manual energy π
okay so bestie, picture this: you've got a bio (that's the block I/O beastie) and it's made of folios, and you need to actually touch every single one of them. that's literally what this macro is for. say hi to bio_for_each_folio_all from the Kernel API Manual, she's iconic and she's here to loop π
πΈ NAME πΈ
bio_for_each_folio_all β iterate over each folio in a bio. that's it, that's the whole job, and she ate π
β¨ SYNOPSIS β¨
bio_for_each_folio_all (fi , bio );
yes the spacing is a little chaotic, no we don't fix it, that's the lore π
π«Ά ARGUMENTS π«Ά
fiβ astruct folio_iterthat gets updated for each folio. think of it as your little tracker bestie that keeps up with where you are in the loop, she gets refreshed every single pass πbioβ thestruct bioyou're iterating over. this is the main character of the operation, the thing you're walking through, respect her π
π¦ SEE ALSO π¦
- Kernel file
./include/linux/bio.hβ the home turf, the mothership, where it all lives π bio_advance(9)struct folio_iter(9)bio_next_split(9)bio_in_atomic(9)bio_complete_in_task(9)bio_endio_status(9)bio_iov_bounce_nr_vecs(9)bio_add_max_vecs(9)bio_is_zone_append(9)
like a whole friend group of bio functions, go say hi to all of them fr fr π«
π the cute sign-off π
this page? sourced straight from ./include/linux, dated October 2026 β a whole vibe, a whole era, no cap π thanks for reading bestie, now go iterate responsibly and slay β¨π§ββοΈπ
π¦ 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