overlay_phandle_add_offset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 either phandle or linux,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 πŸ”₯

  • 0 on 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 πŸ’¬:

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