Name

of_changeset_apply — Apply a changeset

Synopsis

int of_changeset_apply (struct of_changeset * ocs);
 

Arguments

ocs

Pointer to changeset

Description

Process each of the changeset actions then process each of the changeset notifiers for the associated actions.

Any side-effects of live tree state changes are applied here on success, like creation/destruction of devices and side-effects like creation of sysfs properties and directories.

On an error from any of the changeset actions the previously applied changeset entries are reverted. There is no check for notifier errors.

Return

0 on success, -EINVAL for an invalid changeset action, -ENODEV for an attempt to remove non-existent property, and -EEXIST for an attempt to add a property that already exists.