throtl_peek_queued(9)
π throtl_peek_queued(9) π
okay bestie so you're in the Kernel API Manual and the page you opened is throtl_peek_queued β yes, that's the one, section 9, we're deep in kernel land and honestly? it's giving backstage-pass energy ποΈβ¨
πΈ NAME πΈ
throtl_peek_queued β peek the first bio on a qnode list π
like, just a lil peek. not a grab. we're window-shopping the bio list, not buying ποΈ
β¨ SYNOPSIS β¨
struct bio * throtl_peek_queued (struct list_head *queued );
that's the whole signature, character for character, no cap. struct bio * comes back out, struct list_head *queued goes in, and the space before the closing paren is exactly like that. do not come for me, that's how it's written π«Ά
π ARGUMENTS π
queuedβ the qnode list to peek at π it's the list you're being nosy about, that's it, that's the whole parameter
π¦ DESCRIPTION π¦
okay so here's the vibe check on how this thing behaves:
always take a bio from the head of the iops queue first. always. head of the line, first in the door, main character of the queue π₯
and if that queue is empty? then we take it from the bps queue instead β because the whole overall idea is fetching bios from the head, and we're keeping that energy no matter which queue we end up pulling from π
so: iops head first, bps head as the fallback, and the "fetch from the head" philosophy stays intact the whole time. slay π
π SEE ALSO π
- Kernel file
./block/blk-throttle.cβ literally the whole file, go read it, it's the mothership π§ sq_to_tg(9)sq_to_td(9)throtl_log(9)throtl_qnode_add_bio(9)throtl_pop_queued(9)throtl_schedule_next_dispatch(9)throtl_add_bio_tg(9)throtl_pending_timer_fn(9)blk_throtl_dispatch_work_fn(9)
ngl the whole friend group hangs out in ./block/blk-throttle.c β that's the squad, that's the group chat, that's where all these functions live π π
mwah π this page was signed off from ./block in October 2026 β go forth and peek responsibly, bestie πβ¨
π¦ 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