cache_setup_acpi(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ”₯

  • -ENOENT on failure to find table. 😭
  • 0 on success. πŸ’–

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/acpi/pptt.c has the whole friend group:


mwah πŸ’‹ β€” signed, sealed, delivered by ./drivers/acpi, dated October 2026, page cache_setup_acpi(9). periodt. 🫢✨

πŸ“¦ where this page comes from