blk_mq_destroy_queue(9)
π 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 fromblk_mq_alloc_queueby callingblk_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 π
blk_mq_wait_quiesce_done(9)blk_mq_quiesce_queue(9)blk_update_request(9)blk_mq_complete_request(9)blk_mq_start_request(9)blk_execute_rq_nowait(9)blk_execute_rq(9)blk_mq_delay_run_hw_queue(9)blk_mq_run_hw_queue(9)blk_mq_run_hw_queues(9)blk_mq_delay_run_hw_queues(9)blk_mq_request_bypass_insert(9)blk_mq_try_issue_directly(9)blk_mq_submit_bio(9)blk_insert_cloned_request(9)blk_rq_unprep_clone(9)blk_rq_prep_clone(9)
byeee π this icon comes from ./block, dated October 2026, and itβs literally blk_mq_destroy_queue(9) β periodt π
π¦ 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