queue_limits_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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. use queue_limits_start_update and queue_limits_commit_update instead, 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:


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