overlay_fixup_phandle(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ overlay_fixup_phandle(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… and today's main character is overlay_fixup_phandle β€” no cap, this one's lowkey iconic.


πŸŽ€ NAME πŸŽ€

overlay_fixup_phandle β€” set an overlay phandle to the base one πŸ¦‹


🌸 SYNOPSIS 🌸

int overlay_fixup_phandle (void *fdt , void *fdto , int symbols_off ,
       int property );

literally that's the whole signature, keep it exactly like that, iykyk ✨


πŸ’œ ARGUMENTS πŸ’œ

  • fdt β€” the Base Device Tree blob 🫢 like, the original tree, the source of truth
  • fdto β€” the Device tree overlay blob 🧚 the lil extra thing you're layering on top
  • symbols_off β€” the node offset of the symbols node in the base device tree πŸ“
  • property β€” the property offset in the overlay that's holding the list of fixups πŸ‘‘

πŸ”₯ DESCRIPTION πŸ”₯

overlay_fixup_phandle resolves all the overlay phandles that are pointed to in a __fixups__ property, and then it updates them so they match the phandles actually in use in the base device tree. periodt πŸ’…βœ¨

This is part of the device tree overlay application process β€” you know, the moment when you want every single phandle in the overlay to point to the actual base dt nodes. it's giving "matchmaker but for nodes" 🌈


🌟 RETURN 🌟

  • 0 on success β€” slay πŸŽ‰
  • Negative error code on failure β€” πŸ’€ not slay, go check your inputs

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./scripts/dtc/libfdt/fdt_overlay.c β€” go read the source bestie, it's right there πŸ“–

and the whole friend group of related calls, all of them, in order, no skips:


okay that's the page!! πŸ“ this lil gem lives in ./scripts/dtc/libfdt and the version vibes say October 2026 β€” so like, future-era manpage energy, manifesting it for you πŸ¦‹πŸ’– mwah, go fix those phandles bestie 🫢✨

πŸ“¦ where this page comes from