for_each_numa_hop_mask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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