overlay_upda...e_references(9)
π 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 π
0on success β slay π- Negative error code on failure β not slay π
β SEE ALSO β
Kernel file ./scripts/dtc/libfdt/fdt_overlay.c β go read the source, iykyk π§
overlay_get_target_phandle(9)overlay_phandle_add_offset(9)overlay_adjust_node_phandles(9)overlay_adjust_local_phandles(9)overlay_update_local_references(9)overlay_fixup_one_phandle(9)overlay_fixup_phandle(9)overlay_fixup_phandles(9)overlay_adjust_local_conflicting_phandle(9)overlay_update_node_conflicting_references(9)overlay_update_local_conflicting_references(9)overlay_prevent_phandle_overwrite_node(9)overlay_prevent_phandle_overwrite(9)overlay_apply_node(9)overlay_merge(9)overlay_symbol_update(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms