of_changeset...string_array(9)
β¨ NAME β¨
okay bestie, we are literally in the Kernel API Manual and the page is of_changeset...string_array(9) β yes, that's the header vibe, and you found it π. The function itself is of_changeset_add_prop_string_array, and it does exactly one iconic thing: Add a string list property to a changeset. periodt.
π SYNOPSIS π
int of_changeset_add_prop_string_array (struct of_changeset *ocs ,
struct device_node *np , const char *prop_name , const char * const
*str_array , size_t sz );
π¦ ARGUMENTS π¦
ocsβ changeset pointer. your changeset bestie π«Άnpβ device node pointer. the node in question β¨prop_nameβ name of the property to be added. name it, queen πstr_arrayβ pointer to an array of null terminated strings. yes, an array of null terminated strings, exactly like it says πszβ number of string array elements. count βem, bestie π₯
πΈ DESCRIPTION πΈ
Create a string list property and add it to a changeset. that's the whole assignment π. it's giving "make a string list property, then put it in the changeset" and honestly? iconic. lowkey no extra lore needed here π.
β RETURN β
0 on success, a negative error value in case of an error. no cap: success is zero, and errors go negative ππ
π SEE ALSO π
Kernel file ./drivers/of/dynamic.c β plus these besties right here:
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_u32_array(9)of_changeset_add_prop_bool(9)of_changeset_update_prop_string(9)
source/version vibes: ./drivers/of Β· date: October 2026 β bye bestie, go add those string arrays and slay πβ¨π
π¦ 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