acpi_pptt_g...om_container(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– acpi_pptt_get_cpus_from_container β€” Kernel API Manual ✨

okay so bestie, we're in the <pink>Kernel API Manual</pink> today and the star of the show is literally acpi_pptt_get_cpus_from_container(9). yes that's the whole name, no we're not shortening it, it's iconic and it knows it πŸ’…


🌸 NAME 🌸

acpi_pptt_get_cpus_from_container β€” populates a cpumask with, like, every single CPU inside a processor container. the whole squad. no one gets left behind 🫢


✨ SYNOPSIS ✨

void acpi_pptt_get_cpus_from_container (u32 acpi_cpu_id , cpumask_t
*cpus );

it returns void, so don't go looking for a return value, she gives nothing back and that's her main character energy πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • acpi_cpu_id β€” the UID of the processor container. it's a u32 btw. this is the container we're hunting for πŸ”
  • cpus β€” the resulting CPU mask. it's a cpumask_t *, a pointer, so yeah we're writing into it. this is where the CPUs land πŸ’«

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she actually do? she finds the specified Processor Container, and then fills cpus with all the cpus below it. every last one. periodt.

now here's the lore, because this part matters, ngl:

not all 'Processor Hierarchy' entries in the PPTT are either a CPU or a Processor Container β€” some of them exist purely to describe a Private resource. like, they're just vibing there for a different reason entirely πŸ™ˆ

and CPUs? CPUs have to be leaves. leaves as in the tree structure, bestie, not the salad. so a Processor Container is a non-leaf that has the 'ACPI Processor ID valid' flag set. that's the vibe check that tells you what you're looking at 🌿


πŸ”₯ SEE ALSO πŸ”₯

okay this list is long but every single one of them ate, so let's give them their moment:


lowkey a whole friend group of functions fr fr. go read them, they're all in ./drivers/acpi and they're all slaying in their own way πŸ’œ

and that's the page!! brought to you by ./drivers/acpi, dated <cyan>October 2026</cyan>, in the <rainbow>Kernel API Manual</rainbow>. mwah, go populate some cpumasks responsibly πŸ“πŸ§šπŸ’–

πŸ“¦ where this page comes from