blk_mq_hw_queue_to_node(9)
okay so bestie, youβre looking at blk_mq_hw_queue_to_node(9) from the Kernel API Manual, and itβs giving very specific kernel-internals energy π
β¨
β¨ NAME β¨
Look up the memory node for a hardware queue index. Thatβs literally the whole vibe π§
πΈ SYNOPSIS πΈ
int blk_mq_hw_queue_to_node (struct blk_mq_queue_map *qmap , unsigned int index );
π ARGUMENTS π
qmapβ the CPU-to-hardware-queue map πΊοΈ like, the map that connects CPUs to hardware queues.indexβ the hardware queue index π’ the specific queue number youβre checking.
π DESCRIPTION π
okay so real talk: we have no quick way of doing reverse lookups π thatβs just the situation.
But lowkey itβs fine, because this is only used at queue init time, so runtime isnβt important. Itβs not out here trying to be fast during the main event β itβs doing its little setup-era thing and thatβs valid π«Ά
π¦ SEE ALSO π¦
Kernel file ./block/blk-mq-cpumap.c and these besties:
mwah π this page lives under ./block, dated October 2026, and itβs the blk_mq_hw_queue_to_node(9) man page β periodt ππ
π¦ 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