acpi_pptt_g...rom_cache_id(9)
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β theidfield 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:
acpi_pptt_walk_cache(9)acpi_count_levels(9)acpi_pptt_leaf_node(9)acpi_find_processor_node(9)update_cache_properties(9)topology_get_acpi_cpu_tag(9)check_acpi_cpu_flag(9)acpi_get_cache_info(9)cache_setup_acpi(9)acpi_pptt_cpu_is_thread(9)find_acpi_cpu_topology(9)find_acpi_cpu_topology_package(9)find_acpi_cpu_topology_cluster(9)find_acpi_cpu_topology_hetero_id(9)acpi_pptt_get_child_cpus(9)acpi_pptt_get_cpus_from_container(9)find_acpi_cache_level_from_id(9)
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
- 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