blk_set_queue_depth(9)
π
blk_set_queue_depth(9) β the Kernel API Manual page your bestie needed
okay so welcome to the Kernel API Manual, section 9, and today's main character is blk_set_queue_depth, which is literally just "tell the block layer about the device queue depth." That's the whole vibe. No cap. π
β¨ NAME β¨
blk_set_queue_depth β tell the block layer about the device queue depth
Like... you're just letting the block layer know how deep the device queue goes. That's it. That's the function. π«Ά
πΈ SYNOPSIS πΈ
void blk_set_queue_depth (struct request_queue *q , unsigned int depth
);
Not me writing the signature out exactly like this:
void blk_set_queue_depth(struct request_queue *q, unsigned int depth);
Returns void, so there's no value coming back β it just does the thing and dips. π
π¦ ARGUMENTS π¦
qβ the request queue for the device. this is the queue bestie, the whole point, the main character energy β¨depthβ queue depth. anunsigned int, iconic, no notes π
π SEE ALSO π
so if you're going down the rabbit hole (and you will), the kernel file ./block/blk-settings.c is where this lives, and here's the whole friend group, lowkey:
blk_set_stacking_limits(9)queue_limits_commit_update(9)queue_limits_commit_update_frozen(9)queue_limits_set(9)blk_stack_limits(9)queue_limits_stack_bdev(9)queue_limits_stack_integrity(9)
go read those too, iykyk π₯
and that's the page!! sign-off time π§: this lil beauty comes from ./block, and it's dated October 2026. 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