blk_mq_hw_queue_to_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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