overlay_upda...e_references(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… overlay_update_local_node_references β€” Kernel API Manual (9)

okay so bestie, welcome to the overlay_update_local_node_references page πŸ’– this one lives in the Kernel API Manual, section 9, and it's lowkey a little baddie that fixes up your device tree overlay phandles so nothing clashes. let me walk you through it 🫢


✨ NAME ✨

overlay_update_local_node_references β€” Adjust the overlay references πŸ’…


🌸 SYNOPSIS 🌸

int overlay_update_local_node_references (void *fdto , int tree_node ,
       int fixup_node , uint32_t delta );

πŸŽ€ ARGUMENTS πŸŽ€

  • fdto β€” the device tree overlay blob, literally the whole vibe container πŸ¦‹
  • tree_node β€” node offset of the node we're gonna operate on, like the main character's address ✨
  • fixup_node β€” node offset of the matching local fixups node, its ride-or-die counterpart πŸ’œ
  • delta β€” the offset to shift the phandles by, aka how much we're nudging things πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so overlay_update_local_nodes_references updates the phandles that point to a node inside the device tree overlay, and it does it by adding a constant delta to them. no cap, that's the whole move ✨

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. it's giving pre-merge damage control and honestly? iconic πŸ™ˆπŸ’…


🌈 RETURN 🌈

  • 0 on success β€” slay πŸ’–
  • Negative error code on failure β€” not slay 😭

⭐ SEE ALSO ⭐

Kernel file ./scripts/dtc/libfdt/fdt_overlay.c β€” go read the source, iykyk 🧚


okay that's the whole page bestie, go forth and update those references πŸ’…βœ¨ and yeah β€” this one's served fresh from ./scripts/dtc/libfdt, dated October 2026, filed under overlay_upda...e_references(9) πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from