of_changeset_action(9)
π of_changeset_action(9) π
okay so you're reading the Kernel API Manual bestie, welcome, pull up a chair π this one's about of_changeset_action and honestly it's giving "tiny function, big job" energy.
β¨ NAME β¨
of_changeset_action β adds an action to the tail of the changeset list π«Ά like, the end of the line, no cutting, no cap.
πΈ SYNOPSIS πΈ
int of_changeset_action (struct of_changeset *ocs , unsigned long action
, struct device_node *np , struct property *prop );
look at her, so compact, so iconic β¨ copy it exactly, spacing and all, because we do not improvise function signatures in this house π
π¦ ARGUMENTS π¦
ocsβ the changeset pointer π« your main character struct, the whole vibe check happens on this one.actionβ the action to perform π¬ literally the thing you're telling it to do.npβ pointer to a device node π³ the tree node in question.propβ pointer to a property π the property hanging out alongside it.
π DESCRIPTION π
so, the whole deal: this gets called when action is one of these, and we are listing all five because every single one matters π₯
OF_RECONFIG_ATTACH_NODEOF_RECONFIG_DETACH_NODEOF_RECONFIG_ADD_PROPERTYOF_RECONFIG_REMOVE_PROPERTYOF_RECONFIG_UPDATE_PROPERTY
that's the set π attach, detach, add, remove, update β the full glow-up rotation, iykyk.
π RETURN π
0on success π₯³ slay, it worked.- a negative error value in case of an error π not a success, bestie, negative, keep that in mind.
β SEE ALSO β
kernel file ./drivers/of/dynamic.c β that's the spot, go look π
and 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_apply(9)of_changeset_revert(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)
like, the entire group chat, all present and accounted for π
ngl this page is short but she ate π no filler, all facts, and yes you should read the SEE ALSO list, it's literally the rest of the lore π§
and that's the wrap bestie πΈ this one shipped from ./drivers/of back in October 2026, so jot that down in your notes app and go be iconic with your changesets ππ
π¦ 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