blk_mq_all_tag_iter(9)
β¨ 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 tofn. 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 π
bt_for_each(9)bt_tags_for_each(9)blk_mq_tagset_busy_iter(9)blk_mq_tagset_wait_completed_request(9)blk_mq_queue_tag_busy_iter(9)blk_mq_unique_tag(9)
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
- 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