blk_mq_destroy_queue(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to blk_mq_destroy_queue(9) from the Kernel API Manual β€” this is literally the function that handles shutdown a request queue 🫢✨


✨ SYNOPSIS ✨

void blk_mq_destroy_queue (struct request_queue *q );

🌸 ARGUMENTS 🌸

  • q β€” the request queue to shutdown, no cap πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

This right here shuts down a request queue that was allocated by blk_mq_alloc_queue πŸ’–. All future requests will be failed with -ENODEV β€” yes, every single one 😭.

Bestie, the caller is responsible for dropping the reference from blk_mq_alloc_queue by calling blk_put_queue 🫢 don’t forget that part, fr fr.

😴 CONTEXT 😴

Context vibe check: can sleep 😴 β€” that’s the whole note, icon behavior confirmed.


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./block/blk-mq.c, plus these absolutely iconic references πŸ‘‘


byeee πŸ’– this icon comes from ./block, dated October 2026, and it’s literally blk_mq_destroy_queue(9) β€” periodt 🌈

πŸ“¦ where this page comes from