overlay_adju...ode_phandles(9)
π overlay_adjust_node_phandles(9) β from the Kernel API Manual, bestie β¨
okay so we're diving into the Kernel API Manual today and honestly? this one is a lil' niche but it slaps once you get it. it's a C function from the device-tree overlay world, and no cap, it's doing that effortless background-character work that keeps everything from falling apart. π
β¨ NAME β¨
overlay_adjust_node_phandles β literally just offsets the phandles of a node. that's it. that's the vibe. π
π¦ SYNOPSIS π¦
int overlay_adjust_node_phandles (void *fdto , int node , uint32_t delta
);
three args, one int coming back at you. copy it exactly like that, spaces and all β the manpage said so, so we say so. π«Ά
πΈ ARGUMENTS πΈ
fdtoβ the device tree overlay blob. yes, that blob. the whole overlay situation lives in here π§nodeβ the offset of the node we wanna adjust. like, which node are we messing with, bestiedeltaβ the offset to shift the phandles by. the amount. the shimmy. the β¨deltaβ¨
π DESCRIPTION π
okay so here's the tea: overlay_adjust_node_phandles adds a constant to all the phandles of a given node. every single one. it's giving "group chat, everyone gets the same message." π
and it's mainly used as part of the overlay application process β you know, when we want to update all the overlay phandles so they don't conflict with the overlays of the base device tree. so it's lowkey the peacekeeper. highkey iconic. π
π RETURN π
0on success π- a negative error code on failure π
that's the whole contract. no surprises, no drama (unless it's negative, then there's a lil' drama).
π₯ SEE ALSO π₯
- the kernel file:
./scripts/dtc/libfdt/fdt_overlay.cβ go read the source, iykyk π overlay_get_target_phandle(9)overlay_phandle_add_offset(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_prevent_phandle_overwrite(9)overlay_apply_node(9)overlay_merge(9)overlay_symbol_update(9)
that's a whole friend group of functions right there. they all show up together, they all know each other, they all text back. π«Άπ
β friendly reminder: the args are typedvoid *fdto,int node,uint32_t deltaand the return isint. keep those exact, don't get creative with the types, that's not the assignment bestie.
and that's the whole page, no notes! π straight from ./scripts/dtc/libfdt, dated October 2026, in the Kernel API Manual β the section is literally named ./scripts/dtc/libfdt and the date is literally October 2026, so yeah, that's the whole sign-off. 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