cache_setup_acpi(9)
π cache_setup_acpi(9) β bestie edition π
okay so this is cache_setup_acpi(9) from the Kernel API Manual, and it's giving βACPI said let me fix the CPU cache topologyβ energy. slay. Let's get into it. β¨
πΈ NAME πΈ
cache_setup_acpi β Override CPU cache topology with data from the PPTT. π
π SYNOPSIS π
int cache_setup_acpi (unsigned int cpu );
π ARGUMENTS π
cpuβ the Kernel logical CPU number. That's the CPU you're pointing at, no cap. π
π¦ DESCRIPTION π¦
Okay so here's the tea: cache_setup_acpi updates the global cache info provided by cpu_get_cacheinfo when there are valid properties in the acpi_pptt_cache nodes.
Important vibe check: a successful parse may not result in any updates if none of the cache levels have any valid flags set. So it can literally succeed and still be a no-op β that's not a bug, bestie, that's just how it is. π
Also: a unique value is associated with each known CPU cache entry. That unique value can be used to determine whether caches are shared between CPUs. iykyk π₯
π₯ RETURN π₯
-ENOENTon failure to find table. π0on success. π
π SEE ALSO π
Kernel file ./drivers/acpi/pptt.c has the whole friend group:
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)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)acpi_pptt_get_cpumask_from_cache_id(9)
mwah π β signed, sealed, delivered by ./drivers/acpi, dated October 2026, page cache_setup_acpi(9). periodt. π«Άβ¨
π¦ 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