pxm_to_online_node(9)
π pxm_to_online_node(9) β like, the Kernel API Manual girlies β¨
okay so bestie, welcome to pxm_to_online_node(9), straight out of the Kernel API Manual and honestly? she's lowkey a lifesaver π«Ά
β¨ NAME β¨
pxm_to_online_node β the function that maps a proximity ID to an online node, no cap π₯
πΈ SYNOPSIS πΈ
int pxm_to_online_node (int pxm );
π ARGUMENTS π
pxmβ an ACPI proximity ID. that's it, that's the whole vibe π
π¦ DESCRIPTION π¦
so this one is basically pxm_to_node's more emotionally available sibling π β super similar, but she always returns an online node. like, she will not leave you on read with an offline one, periodt.
when the node mapped from a given proximity ID is offline, she goes and looks up the node distance table and hands you back the nearest online node instead. icon behaviour, honestly π
ACPI device drivers that get called after NUMA initialization has completed in the kernel can call this interface to obtain their device NUMA topology from ACPI tables. and the best part? those drivers do not have to deal with offline nodes at all ππ such a relief.
ngl though, a node can be offline β this happens when the SRAT memory entry does not exist, or when NUMA is disabled, ex. "numa=off" on x86. just so you know what's up π
π SEE ALSO π
- Kernel file
./include/linux/acpi.h acpi_get_cpu_uid(9)struct acpi_probe_entry(9)
and that's the whole page, bestie π this cutie lives in ./include/linux, dated October 2026, and she goes by pxm_to_online_node(9) β mwah ππ§ββοΈβ¨
π¦ 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