blk_mq_all_tag_iter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ blk_mq_all_tag_iter(9) ✨

okay so this is a page from the Kernel API Manual, and bestie, it's giving "walk every single request in a tag map" energy πŸ’… like literally the whole vibe is iteration, no cap.


🌸 NAME 🌸

blk_mq_all_tag_iter β€” iterate over all requests in a tag map πŸ¦‹


⭐ SYNOPSIS ⭐

void blk_mq_all_tag_iter (struct blk_mq_tags *tags , busy_tag_iter_fn
*fn , void *priv );

copy it exactly, don't @ me πŸ™ˆ


πŸŽ€ ARGUMENTS πŸŽ€

  • tags β€” the tag map you're iterating over, periodt. This is your main character ✨
  • fn β€” pointer to the function that gets called for each request. And the way it gets called is literally:
fn(rq, priv)

where rq is a pointer to a request πŸ”₯ return true to keep iterating tags, return false to stop. it's giving "keep going or pull the plug" πŸ’€

  • priv β€” gets passed as the second argument to fn. that's it, that's the whole job 🫢

πŸ’– DESCRIPTION πŸ’–

so the caller has to pass the tag map from which requests are allocated. that's the whole requirement, bestie β€” no tag map, no party πŸ™ˆ


🌈 SEE ALSO 🌈

kernel file ./block/blk-mq-tag.c plus these iconic little functions, go read them too, iykyk πŸ‘‘


and that's the whole page, no notes πŸ’œ this cutie lives under ./block and it's dated October 2026, so like… mark your calendars bestie, and remember: blk_mq_all_tag_iter(9) ate and left no crumbs πŸ“βœ¨

πŸ“¦ where this page comes from