update_cpus_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 update_cpus_node(9) β€” like, the kernel API manual bestie πŸ’…

okay so picture this: it's a (9) page, it lives in the Kernel API Manual, and its whole personality is updating the cpus node. we're doing this, let's go 🫢


✨ NAME ✨

update_cpus_node β€” bestie, this one updates the cpus node of the flattened device tree, and it does it by using the of_root device node. that's the whole gig. iconic, honestly. πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

int update_cpus_node (void *fdt );

πŸŽ€ ARGUMENTS πŸŽ€

  • fdt β€” the flattened device tree of the kernel. that's it, that's the whole argument. she takes one (1) thing and she takes it seriously πŸ’œ

🌈 DESCRIPTION 🌈

so what actually happens? it returns 0 on success, and a negative errno on error. no cap, that's literally the contract. success = 0, sad path = negative errno. write it on your hand, iykyk ✨


πŸ’€ NOTE πŸ’€

heads up bestie, this is the fine print and we do NOT skip fine print πŸ™ˆ

it's expecting no subnodes under /cpus/<node> with device_type == "cpu". like, zero. none. not a single one.

and if that ever changes? if someone out there decides to sneak subnodes in? then you gotta update this function to include them too. don't leave her hanging, fr fr. πŸ“


πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./arch/powerpc/kexec/core_64.c β€” go read it, it's giving main character energy
  • add_node_props(9) β€” her friend!! say hi!! πŸ’–

that's the whole page, you ate that 🌟 stay hydrated, read your kernel source, and remember: 0 is success and negative errno is not a vibe check you want to fail. mwah πŸ’…

kisses from the ./arch/powerpc/kexec girlies β€” this one's dated October 2026, and it's still signed update_cpus_node(9) if anyone asks 🧚

πŸ“¦ where this page comes from