next_demotion_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… next_demotion_node β€” from the Kernel API Manual πŸ’…

okay bestie, this is the whole vibe for next_demotion_node(9) β€” the tiny little lookup that tells you where the demotion path goes next. no cap, it's giving β€œfollow the node brick road” energy 🧚✨

🌸 NAME 🌸

next_demotion_node β€” Get the next node in the demotion path.

✨ SYNOPSIS ✨

int next_demotion_node (int node , const nodemask_t *allowed_mask );

πŸŽ€ ARGUMENTS πŸŽ€

  • node β€” The starting node to lookup the next node.
  • allowed_mask β€” The pointer to allowed node mask.

πŸ’– RETURN πŸ’–

You get the node id for the next memory node in the demotion path hierarchy from node; NUMA_NO_NODE if node is terminal. This does not keep node online or guarantee that it continues to be the next demotion target. 🫢

⚠️ real talk: that β€œdoes not keep node online” part is important β€” it is not a promise that the node stays available, and it is not a guarantee that it keeps being the next demotion target.

🌈 SEE ALSO 🌈


okay that’s the page, bestie πŸ’… source is ./mm, dated October 2026, and it’s literally next_demotion_node(9) β€” periodt βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from