topology_get_acpi_cpu_tag(9)
π 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:
acpi_pptt_walk_cache(9)acpi_count_levels(9)acpi_pptt_leaf_node(9)acpi_find_processor_node(9)update_cache_properties(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)
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
- 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