mt_calc_adistance(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 mt_calc_adistance(9) β€” Kernel API Manual era 🌸

okay so bestie, welcome to the mt_calc_adistance(9) page from the Kernel API Manual β€” it's literally all about calculating abstract distance with registered algorithms, and it's lowkey iconic. no cap πŸ’…


✨ NAME ✨

mt_calc_adistance β€” Calculate abstract distance with registered algorithms


πŸ’– SYNOPSIS πŸ’–

int mt_calc_adistance (int node , int *adist );

πŸŽ€ ARGUMENTS πŸŽ€

  • node β€” the node to calculate abstract distance for
  • adist β€” the returned abstract distance

πŸ”₯ RETURN πŸ”₯

if return_value & NOTIFY_STOP_MASK != 0, then some abstract distance algorithm provides the result, and return it via adist. Otherwise, no algorithm can provide the result and adist will be kept as it is. periodt πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./mm/memory-tiers.c β€” plus these cuties: folio_use_access_time(9), next_demotion_node(9), register_mt_adistance_algorithm(9), and unregister_mt_adistance_algorithm(9) πŸ’–


sign-off vibes: this one lives in ./mm, dated October 2026, and it's the mt_calc_adistance(9) page β€” slay, bye bestie 🫢✨

πŸ“¦ where this page comes from