overlay_upda...g_references(9)
π 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 π
0on 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:
overlay_get_target_phandle(9)overlay_phandle_add_offset(9)overlay_adjust_node_phandles(9)overlay_adjust_local_phandles(9)overlay_update_local_node_references(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_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)
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
- 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