find_acpi_cp...logy_package(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, this is the find_acpi_cpu_topology_package page from the Kernel API Manual, and it’s literally here to help you figure out a CPU’s package vibe πŸ’…βœ¨

πŸ’– NAME πŸ’–

find_acpi_cpu_topology_package β€” determine a unique CPU package value πŸŽ€

✨ SYNOPSIS ✨

int find_acpi_cpu_topology_package (unsigned int cpu );

🌸 ARGUMENTS 🌸

  • cpu β€” the kernel logical CPU number, bestie 🧚

πŸ¦‹ DESCRIPTION πŸ¦‹

So the goal here is to determine a topology unique package ID for the given CPU. That ID can then be used to group peers, and those peers will have matching ids πŸ‘‘βœ¨

The search stops when either a level is found with the PHYSICAL_PACKAGE flag set, or we reach a root node. periodt 🫢

πŸ”₯ RETURN πŸ”₯

It returns -ENOENT if the PPTT doesn’t exist, or if the CPU cannot be found 😭

Otherwise, it returns a value which represents the package for this CPU. slay πŸ’œ

🌈 SEE ALSO 🌈

Kernel file: ./drivers/acpi/pptt.c πŸ“


source/version: ./drivers/acpi Β· date: October 2026 β€” iconic little footer moment, no cap πŸ’–πŸŽ€πŸ’«

πŸ“¦ where this page comes from