of_get_cpu_hwid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🌈

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