of_overlay_fdt_apply(9)
okay so this is of_overlay_fdt_apply(9) from the Kernel API Manual, and bestie, it's literally the βcreate and apply an overlay changesetβ function. π¦β¨
π NAME π
of_overlay_fdt_apply - Create and apply an overlay changeset
β¨ SYNOPSIS β¨
int of_overlay_fdt_apply (const void *overlay_fdt , u32 overlay_fdt_size
, int *ret_ovcs_id , const struct device_node *base );
π ARGUMENTS π
overlay_fdtβ pointer to overlay FDToverlay_fdt_sizeβ number of bytes inoverlay_fdtret_ovcs_idβ pointer for returning created changeset idbaseβ pointer for the target node to apply overlay
π¦ DESCRIPTION π¦
Creates and applies an overlay changeset. π
See of_overlay_apply for important behavior information. fr fr, that one matters.
On error return, the changeset may be partially applied π. This is especially likely if anOF_OVERLAY_POST_APPLYnotifier returns an error. In this case the caller should callof_overlay_removewith the value in*ret_ovcs_id.
π₯ RETURN π₯
0on success, or a negative error number.*ret_ovcs_idis set to the value of overlay changeset id, which can be passed toof_overlay_removeto remove the overlay.
π SEE ALSO π
Kernel file ./drivers/of/overlay.c, plus the whole squad:
struct target(9)struct fragment(9)struct overlay_changeset(9)of_overlay_notifier_register(9)of_overlay_notifier_unregister(9)add_changeset_property(9)add_changeset_node(9)build_changeset_next_level(9)changeset_dup_entry_check(9)build_changeset(9)init_overlay_changeset(9)of_overlay_remove(9)of_overlay_remove_all(9)
cute little sign-off bestie: source/version ./drivers/of, date October 2026, and this whole page is giving Kernel API Manual energy π«Άβ¨π
π¦ 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