topology_get_acpi_cpu_tag(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… topology_get_acpi_cpu_tag(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” this one's a lil function called topology_get_acpi_cpu_tag, and honestly? it's giving "quiet main character who does one thing perfectly." πŸŽ€


✨ NAME ✨

topology_get_acpi_cpu_tag β€” find a unique topology value for a feature 🌸


✨ SYNOPSIS ✨

int topology_get_acpi_cpu_tag (struct acpi_table_header *table ,
unsigned int cpu , int level , int flag );

like, that's the whole signature, no cap. 🫢


✨ ARGUMENTS ✨

  • table β€” pointer to the head of the PPTT table. yeah, the table. the big one. πŸ‘‘
  • cpu β€” the kernel logical CPU number. which lil guy are we talking about πŸ’–
  • level β€” a level that terminates the search. it's the stop sign, basically πŸ›‘
  • flag β€” a flag which terminates the search. also a stop sign, but the flag kind πŸ™ˆ

✨ DESCRIPTION ✨

so here's the vibe: you give it a CPU and a topology level, and it hands you back a unique value. that value can then be matched up to figure out which CPUs share common topological features at that level. literally matchmaking for processors πŸ’…βœ¨

it's not complicated, it's just specific. iykyk.


✨ RETURN ✨

a unique value πŸ”₯ β€” or -ENOENT if it can't locate the CPU 😭 (bestie is lost, no cap)


✨ SEE ALSO ✨

kernel file ./drivers/acpi/pptt.c β€” plus the whole friend group:

like, the whole squad showed up 🫢🌈


and that's the page!! brought to you by ./drivers/acpi πŸ¦‹, dated October 2026 ⭐ β€” slay, go read the source, mwah πŸ’–πŸ’…

πŸ“¦ where this page comes from