Name

of_overlay_create — Create and apply an overlay

Synopsis

int of_overlay_create (struct device_node * tree);
 

Arguments

tree

Device node containing all the overlays

Description

Create and apply an overlay while also keeping track of the overlay in a list. This list can be used to prevent illegal overlay removals.

Return

Id of the created overlay on success, else -ENOMEM on memory allocation failure, -EINVAL for an invalid changeset action, -ENODEV for an attempt to remove non-existent property, -EEXIST for an attempt to add a property that already exists, -ENODEV if no valid overlay found in tree.