overlay_merge(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… overlay_merge(9) β€” like, the manual page, but make it make sense πŸ¦‹

okay so bestie, welcome to overlay_merge from the Kernel API Manual β€” yes that manual, the kernel one, don't panic, we got this πŸ’–


✨ NAME ✨

overlay_merge β€” merges an overlay right into its base device tree, that's the whole gig πŸ‘‘


🌸 SYNOPSIS 🌸

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

(no cap, that spacing is literally how it's written, i don't make the rules πŸ’…)


πŸŽ€ ARGUMENTS πŸŽ€

  • fdt β€” the base Device Tree blob, the main character 🌈
  • fdto β€” the device tree overlay blob, the guest star showing up to merge into the main character's storyline πŸ¦‹

πŸ’œ DESCRIPTION πŸ’œ

so overlay_merge merges an overlay into its base device tree. that's it, that's the function πŸ’–

but like, context, because iykyk: this is the next to last step in the device tree overlay application process. at this point all the phandles have already been adjusted and resolved (slay ✨), and all that's left is for you to just merge the overlay into the base device tree. it's giving final boss but make it chill πŸŽ€


πŸ”₯ RETURN πŸ”₯

  • 0 on success β€” iconic, we love a clean win πŸ‘‘
  • Negative error code on failure β€” not the vibe, but at least it tells you 😭

🫢 SEE ALSO 🫢

kernel file ./scripts/dtc/libfdt/fdt_overlay.c β€” that's where the magic lives, go look 🧚

and the whole friend group, fr fr:

like, that's the whole group chat, every single one of them πŸ’€


okay that's the page bestie, hope it ate πŸ“ this one came out of ./scripts/dtc/libfdt and it's dated October 2026 β€” talk about a main character timestamp ⭐ bye luv u πŸ’œ

πŸ“¦ where this page comes from