overlay_pre...le_overwrite(9)
πΈ overlay_prevent_phandle_overwrite(9) πΈ
okay bestie, you're reading the section 9 page for overlay_prevent_phandle_overwrite β yes, it's a mouthful, yes it's worth it π
this is the Kernel API Manual, so buckle up π
β¨ NAME β¨
overlay_prevent_phandle_overwrite β the function that fixes your overlay phandles so they don't go stomping all over the base phandles π€ like, respectfully, stay in your lane π
π¦ SYNOPSIS π¦
int overlay_prevent_phandle_overwrite (void *fdt , void *fdto );
literally that's the whole call, no cap β¨
π ARGUMENTS π
fdtβ the base Device Tree blob π«Άfdtoβ the device tree overlay blob π
π DESCRIPTION π
so here's the vibe check π it checks recursively whether applying fdto would overwrite phandle values in the base dtb. and when it finds one of those sneaky little phandles? it changes the fdto to use the fdt's phandle value instead β because otherwise you'd break references in the base, and we are not doing that today, periodt π
π₯ RETURN π₯
0on success π- Negative error code on failure π
π§ SEE ALSO π§
the kernel file:
./scripts/dtc/libfdt/fdt_overlay.c
and the whole friend group, all of these icons πβ¨:
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_node_conflicting_references(9)overlay_update_local_conflicting_references(9)overlay_prevent_phandle_overwrite_node(9)overlay_apply_node(9)overlay_merge(9)overlay_symbol_update(9)
ngl, if you're deep in scripts/dtc/libfdt at this point you already know what's up. slay. π
okay that's the page!! this one lives in ./scripts/dtc/libfdt, dated October 2026, and honestly? iconic π 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