for_each_numa_hop_mask(9)
π for_each_numa_hop_mask(9) π
okay so bestie, this is the for_each_numa_hop_mask(9) page from the Kernel API Manual β¨ and it's literally about hopping through NUMA distances, so let's get into it π¦
π NAME π
for_each_numa_hop_mask β iterate over cpumasks of increasing NUMA distance from a given node. π
β¨ SYNOPSIS β¨
for_each_numa_hop_mask (mask , node );
π ARGUMENTS π
maskβ the iteration variable. π«Άnodeβ the NUMA node to start the search from. πΈ
π₯ DESCRIPTION π₯
Okay so before you even think about running this, bestie: it requires rcu_lock to be held π β like, that is not optional, the vibe check fails otherwise.
It yields cpu_online_mask for node == NUMA_NO_NODE π.
π SEE ALSO π
- Kernel file
./include/linux/topology.hβ yes, peep that file π for_each_node_numadist(9)β also on the see-also radar β
cute lil sign-off: this page's source/version is ./include/linux, the date is October 2026, and the page itself is for_each_numa_hop_mask(9) β mwah ππ
π¦ 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