of_changeset_action(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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_NODE
  • OF_RECONFIG_DETACH_NODE
  • OF_RECONFIG_ADD_PROPERTY
  • OF_RECONFIG_REMOVE_PROPERTY
  • OF_RECONFIG_UPDATE_PROPERTY

that's the set 🌈 attach, detach, add, remove, update β€” the full glow-up rotation, iykyk.


πŸ’œ RETURN πŸ’œ

  • 0 on 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:

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