of_overlay_fdt_apply(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 FDT
  • overlay_fdt_size β€” number of bytes in overlay_fdt
  • ret_ovcs_id β€” pointer for returning created changeset id
  • base β€” 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 an OF_OVERLAY_POST_APPLY notifier returns an error. In this case the caller should call of_overlay_remove with the value in *ret_ovcs_id.

πŸ”₯ RETURN πŸ”₯

  • 0 on success, or a negative error number.
  • *ret_ovcs_id is set to the value of overlay changeset id, which can be passed to of_overlay_remove to remove the overlay.

🌈 SEE ALSO 🌈

Kernel file ./drivers/of/overlay.c, plus the whole squad:


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