next_demotion_node(9)
π
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 π
- Kernel file
./mm/memory-tiers.c folio_use_access_time(9)register_mt_adistance_algorithm(9)unregister_mt_adistance_algorithm(9)mt_calc_adistance(9)
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
- 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