queue_limits_set(9)
π queue_limits_set (Kernel API Manual) π
okay so bestie, welcome to the kernel API manual, and today's main character is queue_limits_set β the function that literally just applies queue limits to a queue. slay.
β¨ NAME β¨
queue_limits_set β apply queue limits to queue. that's it, that's the whole vibe. πΈ
π¦ SYNOPSIS π¦
int queue_limits_set (struct request_queue *q , struct queue_limits *lim );
π ARGUMENTS π
qβ the queue to update. this is the one getting a glow-up β¨limβ the limits to apply. the actual content of the glow-up π
π DESCRIPTION π
so here's the tea π: this applies the limits in lim β which were freshly initialized, no cap β to q. brand new limits, brand new queue, iconic behavior.
β οΈ but bestie listen: if you're trying to update limits that already exist, this is not the move. usequeue_limits_start_updateandqueue_limits_commit_updateinstead, fr fr. π
returns 0 if it worked, otherwise a negative error code π β so like, check that return value, iykyk.
π₯ SEE ALSO π₯
kernel file ./block/blk-settings.c, plus the whole squad:
blk_set_stacking_limits(9)queue_limits_commit_update(9)queue_limits_commit_update_frozen(9)blk_stack_limits(9)queue_limits_stack_bdev(9)queue_limits_stack_integrity(9)blk_set_queue_depth(9)
and that's the page, bestie π«Ά β brought to you by the fine folks at ./block, October 2026, and it's literally queue_limits_set(9) signing off πβ¨π
π¦ 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