acpi_pptt_get_child_cpus(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 acpi_pptt_get_child_cpus β€” the acpi_pptt_get_child_cpus(9) page, bestie edition 🌸

okay so this is a page from the Kernel API Manual and it's literally about finding every CPU chilling under one node of the PPTT processor hierarchy. stay with me, it's actually so good πŸ’…


✨ NAME ✨

acpi_pptt_get_child_cpus β€” find all the CPUs below a PPTT processor hierarchy node. like, the whole fam. every single one. no cap 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

void acpi_pptt_get_child_cpus (struct acpi_table_header *table_hdr ,
struct acpi_pptt_processor *parent_node , cpumask_t *cpus );

that's the whole signature, character for character, don't come for me 😌


πŸŽ€ ARGUMENTS πŸŽ€

  • table_hdr β€” a reference to the PPTT table. yes bestie, the table, the one with the headers πŸ’–
  • parent_node β€” a pointer to the processor hierarchy node in the table_hdr. it's giving main character node πŸ‘‘
  • cpus β€” a cpumask that gets filled with the CPUs below parent_node. it's the empty little basket you're yeeting CPUs into 🧺✨

πŸ”₯ DESCRIPTION πŸ”₯

so the way this works: it walks up the PPTT from every possible CPU and checks whether the parent_node you handed it is a parent of that CPU. that's it. that's the whole vibe check. if the node is a parent, that CPU counts as a child. slay πŸ’…

literally every possible CPU gets checked, so it's thorough β€” obsessed fr fr 🌈


πŸ’œ SEE ALSO πŸ’œ

  • the kernel file ./drivers/acpi/pptt.c β€” that's where the magic lives, iykyk πŸ—‚οΈ

and the whole friend group of related pages, all of them, in order:

like, that's the entire group chat, every last one 🫢


aaaand that's the page!! πŸ’– this little gem lives in ./drivers/acpi and the version/date stamp is October 2026, so like, mark your calendars bestie πŸ—“οΈβœ¨ periodt 🌸

πŸ“¦ where this page comes from