overlay_prev...erwrite_node(9)
π NAME π
overlay_prevent_phandle_overwrite_node β ok bestie, this is a helper function for overlay_prevent_phandle_overwrite, and that's literally the whole vibe. It's a supporting character function, the bestie of the main bestie, and it's here living in the Kernel API Manual. π«Ά
β¨ SYNOPSIS β¨
int overlay_prevent_phandle_overwrite_node (void *fdt , int fdtnode ,
void *fdto , int fdtonode );
Not me showing you the exact signature because precision is everything. π
πΈ ARGUMENTS πΈ
fdtβ the base Device tree blob. This is the home base, the main character blob, the one everything gets checked against. πfdtnodeβ a node infdtthat gets checked for an overwrite. Like, we're peeking at this node specifically to see if somebody's about to do something shady to it. πfdtoβ the Device tree overlay blob. The incoming one. The guest star. β¨fdtonodeβ the node infdtothat matchesfdtnode. Yes, they're a matching pair, it's giving soulmate energy, no cap. π
π₯ RETURN π₯
0on success β slay, it worked. π- Negative error code on failure β π that's the sad path, bestie, handle it.
π¦ SEE ALSO π¦
Kernel file ./scripts/dtc/libfdt/fdt_overlay.c β that's where the magic lives, iykyk. π
And the whole friend group, 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_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(9)overlay_apply_node(9)overlay_merge(9)overlay_symbol_update(9)
That's the entire squad and they all ate. ππ
Heads up bestie: checkfdtnodeinfdtagainst the matchingfdtonodeinfdto, get0back for a win or a negative error code for a loss. That's the tea. β
Sign-off time, icons only π§ β this page lives in ./scripts/dtc/libfdt, it's dated October 2026, and its title is overlay_prev...erwrite_node(9) because the title is long enough to need a little nap in the middle. ππΈ No notes, periodt. π
π¦ 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