overlay_merge(9)
π 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 π₯
0on 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:
overlay_get_target_phandle(9)overlay_phandle_add_offset(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_symbol_update(9)
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
- 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