overlay_fixup_phandles(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ overlay_fixup_phandles(9) ✨

ok so bestie, welcome to the Kernel API Manual β€” today's episode is overlay_fixup_phandles, and honestly? she's a glow-up queen for your device tree. πŸ§šπŸ’–

🌸 NAME 🌸

overlay_fixup_phandles β€” literally resolves the overlay phandles to the base device tree. that's it, that's the whole vibe check. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int overlay_fixup_phandles (void *fdt , void *fdto );

πŸ“ ARGUMENTS πŸ“

  • fdt β€” base Device Tree blob. the main character of this whole situation. πŸ‘‘
  • fdto β€” device tree overlay blob. the little bestie that's tagging along and needs to know where she belongs. 🫢

πŸ’… DESCRIPTION πŸ’…

okay so listen. overlay_fixup_phandles resolves all the overlay phandles pointing to nodes in the base device tree. every single one. no cap. πŸ”₯

this is one of the steps of the device tree overlay application process β€” you know, the part where you want all the phandles in the overlay to point to the actual base dt nodes. that's the whole goal, that's the assignment, and she ate. ✨

ngl, think of it as the "okay everyone, find your actual seats" moment of the overlay process. the phandles are in the group chat, and she's the one making sure everyone's @ maps to a real person. πŸ’€

πŸ‘‘ RETURN πŸ‘‘

  • 0 on success πŸŽ‰
  • negative error code on failure 😭

🌈 SEE ALSO 🌈

kernel file ./scripts/dtc/libfdt/fdt_overlay.c β€” that's where the lore lives, iykyk πŸ“–

and the whole fam, fr fr:


and that's the page, bestie!! πŸ’œ this iconic little number lives at ./scripts/dtc/libfdt and is dated October 2026 β€” so yeah, she's from the future and she's still slaying. mwah πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from