acpi_pptt_g...rom_cache_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Welcome to the acpi_pptt_get_cpumask_from_cache_id(9) page in the Kernel API Manual, bestie πŸ’–. This one is lowkey iconic: it’s all about grabbing the CPUs tied to a specific cache, and it’s giving β€œtopology detective” energy πŸ•΅οΈβ€β™€οΈπŸ¦‹.

🌸 NAME 🌸

acpi_pptt_get_cpumask_from_cache_id β€” get the cpus associated with the specified cache πŸ’…

✨ SYNOPSIS ✨

int acpi_pptt_get_cpumask_from_cache_id (u32 cache_id , cpumask_t *cpus
);

πŸ’… ARGUMENTS πŸ’…

  • cache_id β€” the id field of the cache πŸŽ€
  • cpus β€” where to build the cpumask 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so: figure out which CPUs are below this cache in the PPTT 🌸. This lets the property be found even if the CPUs are offline β€” yes, even then, bestie πŸ˜­πŸ‘‘

Also highkey important: the PPTT table must be rev 3 or later, periodt 🚨.

πŸŽ€ RETURN πŸŽ€

-ENOENT if the PPTT doesn’t exist, or the cache cannot be found πŸ’€. Otherwise it returns 0 and sets the cpus in the provided cpumask β€” slay ✨.

πŸ’– SEE ALSO πŸ’–

Kernel file ./drivers/acpi/pptt.c is the main character here, and the whole squad is:


Signed off from ./drivers/acpi β€” October 2026 β€” on the acpi_pptt_get_cpumask_from_cache_id(9) page in the Kernel API Manual. mwah πŸ’‹πŸŽ€βœ¨

πŸ“¦ where this page comes from