overlay_phandle_add_offset(9)
π overlay_phandle_add_offset π
okay so bestie, this is a page from the Kernel API Manual, section 9 β yes, the kernel docs, but make it cute. sit down, grab a strawberry drink π, and let me tell you about the little function that bumps a phandle's whole number up by an offset. no cap, it's iconic.
β¨ NAME β¨
overlay_phandle_add_offset β literally just increases a phandle by an offset π that's it, that's the vibe
πΈ SYNOPSIS πΈ
int overlay_phandle_add_offset (void *fdt , int node , const char *name
, uint32_t delta );
π¦ ARGUMENTS π¦
fdtβ the base device tree blob, your main character πnodeβ the device tree overlay blob (yes bestie, the overlay one, don't get it twisted)nameβ the name of the property you wanna modify β it's eitherphandleorlinux,phandleπdeltaβ the offset you're applying, the amount of β¨changeβ¨
π DESCRIPTION π
so overlay_phandle_add_offset increments a node phandle by a given offset. that's the whole thing, fr fr. it takes the phandle and adds delta to it. slay. no drama, no notes π«Ά
π₯ RETURN π₯
0on success π- a negative error code on error π (not me getting a negative return... anyway)
π SEE ALSO π
bestie these are all the sibling functions, the whole friend group, the group chat if you will π¬:
- the kernel file
./scripts/dtc/libfdt/fdt_overlay.cβ that's where the magic lives π overlay_get_target_phandle(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_prevent_phandle_overwrite(9)overlay_apply_node(9)overlay_merge(9)overlay_symbol_update(9)
go read them all, i'll wait π§
ok that's the whole page bestie, go touch some grass and then go adjust some phandles π
and finally, the cute lil sign-off: this one lives in ./scripts/dtc/libfdt π
, and it's dated October 2026 β β periodt, that's the version, bye 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