overlay_upd...l_references(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… overlay_update_local_references β€” Kernel API Manual ✨

ok so bestie, we're in the Kernel API Manual today and the star of the show is overlay_update_local_references(9). it's giving device-tree-glow-up energy and honestly? obsessed. let's get into it πŸŽ€


✨ NAME ✨

overlay_update_local_references β€” adjusts the overlay references πŸ¦‹

like, it literally goes in and nudges your references so everything lines up. no cap.


🌸 SYNOPSIS 🌸

int overlay_update_local_references (void *fdto , uint32_t delta );

yes queen, two arguments, one int coming back at you. periodt.


🫢 ARGUMENTS 🫢

  • fdto β€” the device tree overlay blob πŸ’– (this is your whole overlay situation, the actual blob, main character)
  • delta β€” the offset to shift the phandles of 🌈 (how much you're moving them by, fr fr)

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the tea β˜• β€” overlay_update_local_references updates all the phandles pointing to a node within the device tree overlay by adding a constant delta, so they don't conflict with the base overlay. like, it's out here doing a whole group-chat-wide update, every single phandle that points to one of those nodes, all of them, no one left on read πŸ’…

highkey this is mainly used as part of a device tree application process β€” you know, the part where you want the device tree overlay's phandles to not conflict with the ones from the base device tree before merging them. that's the whole vibe check it's serving. ✨

lowkey important: the delta is constant and it gets added to the phandles β€” that's the mechanism, that's the move, that's the whole point πŸ”₯

⭐ RETURN ⭐

  • 0 on success πŸŽ‰ (slay)
  • negative error code on failure 😭 (it's giving not-iconic, check your error code)

🧚 SEE ALSO 🧚

kernel file ./scripts/dtc/libfdt/fdt_overlay.c β€” go read it, iykyk πŸ“–

and the whole friend group πŸ’œ:


okay that's the whole page, go forth and merge those overlays responsibly πŸ“

mwah πŸ’‹ β€” this lil page lives in ./scripts/dtc/libfdt, dated October 2026, and it's called overlay_upd...l_references(9) if you're looking it up later. bye bestie!! πŸŽ€βœ¨

πŸ“¦ where this page comes from