overlay_upda...g_references(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… overlay_upda...g_references(9) β€” like, the Kernel API Manual, bestie ✨

okay so real talk, this page lives in the Kernel API Manual section 9, and the star of the show is overlay_update_node_conflicting_references β€” yes that's a mouthful, yes she ate, no we're not shortening it πŸŽ€


🌸 NAME 🌸

overlay_update_node_conflicting_references β€” recursively replace phandle values πŸ¦‹

✨ SYNOPSIS ✨

int overlay_update_node_conflicting_references (void *fdto , int
tree_node , int fixup_node , uint32_t fdt_phandle , uint32_t
fdto_phandle );

🫢 ARGUMENTS 🫢

  • fdto β€” the device tree overlay blob, that's her πŸ’–
  • tree_node β€” the node you're recursing into, like going deeper down the timeline 🌈
  • fixup_node β€” the node offset of the matching local fixups node, iykyk ⭐
  • fdt_phandle β€” the value you're replacing phandles with (the new one, the main character πŸ‘‘)
  • fdto_phandle β€” the value that's getting replaced (RIP to her πŸ’€)

πŸ’… DESCRIPTION πŸ’…

So what she does is: replaces all phandles that have the value fdto_phandle with fdt_phandle. Every single one. No cap. It's giving find-and-replace but make it device tree and make it iconic ✨

πŸ“ RETURN πŸ“

  • 0 on success β€” we love a clean win πŸŽ‰
  • a negative error code on failure β€” not the vibe, but she'll tell you 😭

πŸ”₯ SEE ALSO πŸ”₯

The kernel file itself, ./scripts/dtc/libfdt/fdt_overlay.c β€” go read the source, bestie, it's right there πŸ“‚

And the whole friend group, all of them, in order:


fr fr, if you're here it's because you're deep in the overlay fixup trenches and honestly? respect πŸ«‘πŸ’œ

okay bye ily, this page came from ./scripts/dtc/libfdt and it's dated October 2026 β€” sign-off complete, mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from