acpi_pptt_leaf_node(9)
π acpi_pptt_leaf_node(9) β like, the Kernel API Manual page bestie πΈ
okay so listen. this is acpi_pptt_leaf_node(9) from the Kernel API Manual, and honestly? it's a tiny little function doing one very specific vibe check on your PPTT table. let's get into it π
β¨ NAME β¨
acpi_pptt_leaf_node β given a processor node, determine if it's a leaf π
β¨ SYNOPSIS β¨
int acpi_pptt_leaf_node (struct acpi_table_header *table_hdr , struct
acpi_pptt_processor *node );
β¨ ARGUMENTS β¨
table_hdrβ pointer to the head of the PPTT table. like, the very beginning of it π«Άnodeβ the node being passed in, which we're gonna check to see if it's a leaf π
β¨ DESCRIPTION β¨
so what this does is determine if the *node parameter is a leaf node β and the way it does that is by iterating the PPTT table, looking for nodes which reference it. that's it. that's the whole thing. a little search party for anyone pointing at your node πβ¨
β¨ RETURN β¨
0β if we find a node referencing the passed node (or if there's a table error π)1β if we don't
β¨ SEE ALSO β¨
kernel file ./drivers/acpi/pptt.c β and the whole friend group:
acpi_pptt_walk_cache(9)acpi_count_levels(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_child_cpus(9)acpi_pptt_get_cpus_from_container(9)find_acpi_cache_level_from_id(9)acpi_pptt_get_cpumask_from_cache_id(9)
bestie this one is genuinely so short, don't overthink it. leaf or not leaf,0or1, periodt π
that's the whole page!! from ./drivers/acpi, dated October 2026, manual section 9 β mwah, take care, go read the other seventeen now πππ¦
π¦ 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