mt_calc_adistance(9)
πΈ 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 foradistβ 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
- 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