overlay_prev...erwrite_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

overlay_prevent_phandle_overwrite_node β€” ok bestie, this is a helper function for overlay_prevent_phandle_overwrite, and that's literally the whole vibe. It's a supporting character function, the bestie of the main bestie, and it's here living in the Kernel API Manual. 🫢


✨ SYNOPSIS ✨

int overlay_prevent_phandle_overwrite_node (void *fdt , int fdtnode ,
       void *fdto , int fdtonode );

Not me showing you the exact signature because precision is everything. πŸŽ€


🌸 ARGUMENTS 🌸

  • fdt β€” the base Device tree blob. This is the home base, the main character blob, the one everything gets checked against. 😌
  • fdtnode β€” a node in fdt that gets checked for an overwrite. Like, we're peeking at this node specifically to see if somebody's about to do something shady to it. πŸ‘€
  • fdto β€” the Device tree overlay blob. The incoming one. The guest star. ✨
  • fdtonode β€” the node in fdto that matches fdtnode. Yes, they're a matching pair, it's giving soulmate energy, no cap. πŸ’–

πŸ”₯ RETURN πŸ”₯

  • 0 on success β€” slay, it worked. πŸŽ‰
  • Negative error code on failure β€” 😭 that's the sad path, bestie, handle it.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./scripts/dtc/libfdt/fdt_overlay.c β€” that's where the magic lives, iykyk. πŸ’…

And the whole friend group, fr fr:

That's the entire squad and they all ate. πŸ‘‘πŸŒˆ


Heads up bestie: check fdtnode in fdt against the matching fdtonode in fdto, get 0 back for a win or a negative error code for a loss. That's the tea. β˜•

Sign-off time, icons only 🧚 β€” this page lives in ./scripts/dtc/libfdt, it's dated October 2026, and its title is overlay_prev...erwrite_node(9) because the title is long enough to need a little nap in the middle. πŸ’€πŸŒΈ No notes, periodt. πŸ’œ

πŸ“¦ where this page comes from