of_cpu_node_to_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so welcome to the of_cpu_node_to_id(9) page, bestie β€” this is from the Kernel API Manual, and the whole vibe is: get the logical CPU number for a given device_node. That’s it, that’s the mission. ✨

✨ SYNOPSIS ✨

int of_cpu_node_to_id (struct device_node *cpu_node );

πŸŽ€ ARGUMENTS πŸŽ€

  • cpu_node β€” pointer to the device_node for the CPU. Like, hand it the CPU’s node and you’re good 🫢

🌸 RETURN 🌸

It gives you back the logical CPU number of the given CPU device_node, or -ENODEV if the CPU is not found. No cap, that’s the whole return situation πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/of/cpu.c, plus these iconic little friends:


okay bye bestie 🫢 this cutie is from source/version ./drivers/of, dated October 2026, and it’s the of_cpu_node_to_id(9) manual β€” periodt πŸ’–

πŸ“¦ where this page comes from