overlay_fixup_phandle(9)
β¨ overlay_fixup_phandle(9) β¨
okay so bestie, welcome to the Kernel API Manual π
and today's main character is overlay_fixup_phandle β no cap, this one's lowkey iconic.
π NAME π
overlay_fixup_phandle β set an overlay phandle to the base one π¦
πΈ SYNOPSIS πΈ
int overlay_fixup_phandle (void *fdt , void *fdto , int symbols_off ,
int property );
literally that's the whole signature, keep it exactly like that, iykyk β¨
π ARGUMENTS π
fdtβ the Base Device Tree blob π«Ά like, the original tree, the source of truthfdtoβ the Device tree overlay blob π§ the lil extra thing you're layering on topsymbols_offβ the node offset of the symbols node in the base device tree πpropertyβ the property offset in the overlay that's holding the list of fixups π
π₯ DESCRIPTION π₯
overlay_fixup_phandle resolves all the overlay phandles that are pointed to in a __fixups__ property, and then it updates them so they match the phandles actually in use in the base device tree. periodt π
β¨
This is part of the device tree overlay application process β you know, the moment when you want every single phandle in the overlay to point to the actual base dt nodes. it's giving "matchmaker but for nodes" π
π RETURN π
0on success β slay π- Negative error code on failure β π not slay, go check your inputs
π SEE ALSO π
Kernel file ./scripts/dtc/libfdt/fdt_overlay.c β go read the source bestie, it's right there π
and the whole friend group of related calls, all of them, in order, no skips:
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_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 page!! π this lil gem lives in ./scripts/dtc/libfdt and the version vibes say October 2026 β so like, future-era manpage energy, manifesting it for you π¦π mwah, go fix those phandles bestie π«Άβ¨
π¦ 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