of_changeset_apply(9)
π« of_changeset_apply(9) π«
okay bestie, welcome to the Kernel API Manual β yes we're literally reading kernel docs together, this is our bonding era π«Ά
β¨ NAME β¨
of_changeset_apply β it applies a changeset. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
int of_changeset_apply (struct of_changeset *ocs );
π ARGUMENTS π
ocsβ the changeset pointer, aka the little handle to the changeset you're about to unleash π
π¦ DESCRIPTION π¦
so here's the tea: this bad boy applies a changeset to the live tree. no cap, the real one. π
and the way that any side-effects of live tree state changes get applied here on success?? iconic. we're talking creation/destruction of devices, plus side-effects like creation of sysfs properties and directories. it's giving main character energy for real ππ₯
β RETURN β
0on success π- a negative error value in case of an error π
and ngl, the good part: on error, the partially applied effects are reverted. slay, we love a clean rollback πβ¨
π SEE ALSO π
kernel file ./drivers/of/dynamic.c β plus the whole friend group:
of_node_get(9)of_node_put(9)of_attach_node(9)of_detach_node(9)of_node_release(9)__of_prop_dup(9)__of_node_dup(9)of_changeset_create_node(9)of_changeset_init(9)of_changeset_destroy(9)of_changeset_revert(9)of_changeset_action(9)of_changeset_add_prop_string(9)of_changeset_add_prop_string_array(9)of_changeset_add_prop_u32_array(9)of_changeset_add_prop_bool(9)of_changeset_update_prop_string(9)
and that's the whole page, bestie β go forth and apply those changesets responsibly π
little sign-off from the source: this one lives in ./drivers/of and it's dated October 2026. periodt. ππ§
π¦ 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