of_get_cpu_hwid(9)
π of_get_cpu_hwid(9) π
okay bestie, welcome to the of_get_cpu_hwid(9) page β this is the Kernel API Manual and honestly? it's giving "tiny function, big main character energy." π
β¨ NAME β¨
of_get_cpu_hwid β literally just: Get the hardware ID from a CPU device node. that's it. that's the whole vibe. π
π¦ SYNOPSIS π¦
u64 of_get_cpu_hwid (struct device_node *cpun , unsigned int thread );
likeβ¦ look at her. two args, one u64 return, no notes. iconic. β¨
πΈ ARGUMENTS πΈ
cpunβ the CPU number (logical index) for which the device node is required. so like, which CPU node you're asking about, bestie. π§threadβ the local thread number to get the hardware ID for. the specific thread inside that CPU, yup yup. π
β RETURN β
it hands you back the hardware ID for the CPU node π β¦ or ~0ULL if it's not found π. that's the "sorry bestie, nothing here" value, no cap.
fr fr, remember ~0ULL is the not-found answer β if you see it, it's not a real hardware ID, it's the function telling you to look somewhere else. π
π SEE ALSO π
- Kernel file
./drivers/of/cpu.cπ of_get_cpu_node(9)of_cpu_device_node_get(9)of_cpu_node_to_id(9)of_get_cpu_state_node(9)
all the sibling functions, the whole of cpu friend group π«Ά β go say hi. iykyk. π¦
so yeah, that's the whole page β¨ β sourced from ./drivers/of, dated October 2026, and it's of_get_cpu_hwid(9) signing off. slay, go read your device tree, ily, bye πππ
π¦ 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