sq_to_tg(9)
okay so bestie, welcome to sq_to_tg(9) from the Kernel API Manual π this one is short, sweet, and lowkey iconic β we're checking which throttle group a service queue belongs to. periodt β¨
π NAME π
sq_to_tg β return the throl_grp the specified service queue belongs to. no cap, that's the exact spelling from the page, and we're keeping it π«Ά
β¨ SYNOPSIS β¨
struct throtl_grp * sq_to_tg (struct throtl_service_queue *sq );
π ARGUMENTS π
sqβ thethrotl_service_queueof interest π aka the queue we're asking about.
π¦ DESCRIPTION π¦
Return the throtl_grp that sq belongs to. that's the whole vibe β¨
But bestie, plot twist: if sq is the top-level one embedded in throtl_data, then NULL is returned π so NULL is literally the whole answer in that case.
π SEE ALSO π
Kernel file ./block/blk-throttle.c is the main character here β go peek at these besties for the full lore:
sq_to_td(9)throtl_log(9)throtl_qnode_add_bio(9)throtl_peek_queued(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)
okurrr that's the whole page π this lil manpage lives under ./block, dated October 2026, and it's serving sq_to_tg(9) realness π
β¨
π¦ 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