of_changeset...string_array(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


source/version vibes: ./drivers/of Β· date: October 2026 β€” bye bestie, go add those string arrays and slay πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from