acpi_pptt_get_child_cpus(9)
πΈ 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 thetable_hdr. it's giving main character node πcpusβ acpumaskthat gets filled with the CPUs belowparent_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:
acpi_pptt_walk_cache(9)acpi_count_levels(9)acpi_pptt_leaf_node(9)acpi_find_processor_node(9)update_cache_properties(9)topology_get_acpi_cpu_tag(9)check_acpi_cpu_flag(9)acpi_get_cache_info(9)cache_setup_acpi(9)acpi_pptt_cpu_is_thread(9)find_acpi_cpu_topology(9)find_acpi_cpu_topology_package(9)find_acpi_cpu_topology_cluster(9)find_acpi_cpu_topology_hetero_id(9)acpi_pptt_get_cpus_from_container(9)find_acpi_cache_level_from_id(9)acpi_pptt_get_cpumask_from_cache_id(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms