of_changese...op_u32_array(9)
okay bestie, welcome to the of_changese...op_u32_array(9) page from the Kernel API Manual β¨ This one is all about adding a 32 bit integer property array to a changeset, and yeah, it's kinda iconic π
π NAME π
of_changeset_add_prop_u32_array β Add a property of 32 bit integers property to a changeset. Yes, the description really says βpropertyβ twice, and we're keeping it, periodt π
β¨ SYNOPSIS β¨
Here's the exact signature, no cap:
int of_changeset_add_prop_u32_array (struct of_changeset *ocs , struct
device_node *np , const char *prop_name , const u32 *array , size_t sz
);
π ARGUMENTS π
ocsβ changeset pointer. This is the changeset bestie you're working with π«Άnpβ device node pointer. The node in question, slay.prop_nameβ name of the property to be added. Pick your fave name, iykyk.arrayβ pointer to an array of 32 bit integers. That's the data vibes.szβ number of array elements. Count 'em.
πΈ DESCRIPTION πΈ
Create a property of 32 bit integers and add it to a changeset. That's the whole plot, bestie β short and sweet ππ
β RETURN β
0 on success, a negative error value in case of an error. So if you see a negative number, something did not slay π
π 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_apply(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_bool(9)of_changeset_update_prop_string(9)
signed off from ./drivers/of, October 2026 β of_changese...op_u32_array(9) π
π¦ 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