overlay_upd...g_references(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… overlay_update_local_conflicting_references β€” Kernel API Manual, section 9

okay so bestie, we're deep in the kernel API manual rn and today's main character is overlay_update_local_conflicting_references. yes that's a whole mouthful, yes it's iconic, and yes I'm gonna walk you through it 🫢


✨ NAME ✨

overlay_update_local_conflicting_references β€” recursively replace phandle values. that's it, that's the whole vibe. it goes in and swaps them out, recursively, no cap πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int overlay_update_local_conflicting_references (void *fdto , uint32_t
fdt_phandle , uint32_t fdto_phandle );

like literally just look at it. three little args, one int coming back at you ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • fdto β€” the device tree overlay blob, bestie. this is the thing we're operating on 🌸
  • fdt_phandle β€” the value we're replacing phandles with. the new one. the glow-up πŸ’–
  • fdto_phandle β€” the value that's getting replaced. the one being swapped out 😭

🌈 DESCRIPTION 🌈

so what does it actually do? it replaces all phandles that have the value fdto_phandle with fdt_phandle. every single one. no leftovers, no stragglers, periodt πŸ”₯


⭐ RETURN ⭐

  • 0 on success β€” slay, we ate πŸ’…
  • Negative error code on failure β€” not slay, something went wrong 😭

πŸ‘‘ SEE ALSO πŸ‘‘

the source of truth lives at the kernel file ./scripts/dtc/libfdt/fdt_overlay.c β€” go read it, iykyk πŸ“–

and here's the whole friend group, all of them hanging out in section 9 together:


bestie note: phandles are literally the backbone of device tree overlays, so don't sleep on this one. every reference gotta line up or the whole thing's giving chaos 🧚

🌸 that's the whole page!! this one came straight out of ./scripts/dtc/libfdt, dated October 2026, and it's giving absolutely immaculate kernel documentation energy. mwah, go touch some device trees πŸ’œ

πŸ“¦ where this page comes from