overlay_fixup_phandles(9)
β¨ overlay_fixup_phandles(9) β¨
ok so bestie, welcome to the Kernel API Manual β today's episode is overlay_fixup_phandles, and honestly? she's a glow-up queen for your device tree. π§π
πΈ NAME πΈ
overlay_fixup_phandles β literally resolves the overlay phandles to the base device tree. that's it, that's the whole vibe check. π
π¦ SYNOPSIS π¦
int overlay_fixup_phandles (void *fdt , void *fdto );
π ARGUMENTS π
fdtβ base Device Tree blob. the main character of this whole situation. πfdtoβ device tree overlay blob. the little bestie that's tagging along and needs to know where she belongs. π«Ά
π DESCRIPTION π
okay so listen. overlay_fixup_phandles resolves all the overlay phandles pointing to nodes in the base device tree. every single one. no cap. π₯
this is one of the steps of the device tree overlay application process β you know, the part where you want all the phandles in the overlay to point to the actual base dt nodes. that's the whole goal, that's the assignment, and she ate. β¨
ngl, think of it as the "okay everyone, find your actual seats" moment of the overlay process. the phandles are in the group chat, and she's the one making sure everyone's @ maps to a real person. π
π RETURN π
0on success π- negative error code on failure π
π SEE ALSO π
kernel file ./scripts/dtc/libfdt/fdt_overlay.c β that's where the lore lives, iykyk π
and the whole fam, fr fr:
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_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)
and that's the page, bestie!! π this iconic little number lives at ./scripts/dtc/libfdt and is dated October 2026 β so yeah, she's from the future and she's still slaying. 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