update_cache_properties(9)
π update_cache_properties(9) β from the Kernel API Manual, bestie
Okay so welcome to the Kernel API Manual, girlies β¨ β today's main character is update_cache_properties, and yes she's a real one in the ./drivers/acpi directory. Let's get into it π
β¨ NAME β¨
update_cache_properties β updates the cacheinfo for the processor you're pointing at, no cap π§
πΈ SYNOPSIS πΈ
void update_cache_properties (struct cacheinfo *this_leaf , struct
acpi_pptt_cache *found_cache , struct acpi_pptt_processor *cpu_node );
Literally that's the whole signature, copy it exactly, don't be weird about the spacing π
π¦ ARGUMENTS π¦
this_leafβ the kernel cache info structure that's getting updated rn. She's the one being edited, okay? πfound_cacheβ the PPTT node that describes this particular cache instance. It's giving "source of truth" energy β¨cpu_nodeβ a unique reference used to describe this cache instance. One of a kind, fr fr π«Ά
π DESCRIPTION π
So here's the vibe: the ACPI spec implies that the fields inside the cache structures get used to extend and correct the info that was probed straight from the hardware. Like, hardware says one thing, ACPI comes in and is like "actually, let me add to that and fix that up" π
But β and this is the important part, bestie β we only set the fields that we determine are VALID. That's literally the rule. Nothing else gets touched. Periodt π
Not me being dramatic, but VALID is in all caps in the original for a reason. Only the fields we've confirmed are valid get set. No guessing, no vibes-based field assignment π
β RETURN β
nothing. π«
Yeah, she returns void β the actual glow-up is a side effect of updating the global cacheinfo. Main character energy doesn't always need a return value, iykyk π
π₯ SEE ALSO π₯
Bestie, the friend group here is LARGE, get comfy π β all of these live in the kernel file ./drivers/acpi/pptt.c:
acpi_pptt_walk_cache(9)acpi_count_levels(9)acpi_pptt_leaf_node(9)acpi_find_processor_node(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)acpi_pptt_get_cpumask_from_cache_id(9)
π that's the whole page, you ate that π
Cute little sign-off for the credits, because we always give credit π: this one's sourced from ./drivers/acpi, dated October 2026, and the page itself is update_cache_properties(9) in the Kernel API Manual. Slay, bye πβ¨
π¦ 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