update_cpus_node(9)
πΈ 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
- 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