rnbd_get_cpu_qlist(9)
π rnbd_get_cpu_qlist β kernel API manual, but make it make sense
okay so bestie, we're in the kernel API manual today and the function on the menu is rnbd_get_cpu_qlist, from the 9 section (that's the kernel devs' section, iykyk). It's giving "find me the right queue list" energy and honestly? iconic. Let's get into it β¨
β¨ NAME β¨
rnbd_get_cpu_qlist β finds a list with HW queues to be rerun π
π¦ SYNOPSIS π¦
struct rnbd_cpu_qlist * rnbd_get_cpu_qlist (struct rnbd_clt_session
*sess , int cpu );
so yeah, it hands you back a struct rnbd_cpu_qlist *, and you feed it a struct rnbd_clt_session * plus an int. that's the whole vibe check π
πΈ ARGUMENTS πΈ
sessβ the Session to find a queue for π«Ά literally the session you're searching in.cpuβ the Cpu to start the search from. like, "begin the hunt here, bestie" β
π₯ DESCRIPTION π₯
okay so here's the tea β β every CPU has its own list of HW queues, and those lists are the ones that need to be rerun.
if a list is not empty, it gets marked with a bit. no cap, that's how it's tracked π
so what does this function actually do? it finds the first set bit in the bitmap and returns the corresponding CPU list. that's it, that's the whole main character moment π
ngl it's a small function, but it's doing exactly what it says on the tin. no surprises, no drama. π§
π SEE ALSO π
- Kernel file
./drivers/block/rnbd/rnbd-clt.cβ the source, go read it fr fr π rnbd_rerun_if_needed(9)rnbd_rerun_all_if_idle(9)rnbd_clt_dev_add_to_requeue(9)
and that's the whole page, bestie π this cutie lives under ./drivers/block/rnbd and the manual's dated October 2026 β periodt, go rerun those queues π¦β¨π
π¦ 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