of_changeset..._prop_string(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– of_changeset_add_prop_string(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” yes we're literally reading kernel docs together, this is our bonding era 🫢


✨ NAME ✨

of_changeset_add_prop_string β€” adds a string property to a changeset. that's it, that's the whole vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int of_changeset_add_prop_string (struct of_changeset *ocs , struct
device_node *np , const char *prop_name , const char *str );

like, look at her. four params, one int coming back. main character energy fr πŸ‘‘


🌸 ARGUMENTS 🌸

  • ocs β€” the changeset pointer πŸ’… this is the little container your changes go into
  • np β€” the device node pointer, aka where this property is headed
  • prop_name β€” the name of the property you're adding, pick something cute (or, yk, semantically correct)
  • str β€” a pointer to a null terminated string. null terminated!! don't forget the terminator, i'm begging 😭

πŸ’œ DESCRIPTION πŸ’œ

so the way this works is: you create a string property, and then you add it to a changeset. that's the entire thing. no cap. πŸ¦‹

like it's giving "small but essential." iconic behaviour honestly.


⭐ RETURN ⭐

  • 0 on success β€” slay, we ate πŸ’…βœ¨
  • a negative error value in case of an error β€” not slay, but at least it tells you 😭
ngl bestie, always check the return value. negative numbers are NOT the vibe and they are NOT success.

🌈 SEE ALSO 🌈

Kernel file ./drivers/of/dynamic.c β€” go read the source, i believe in you 🧚

and then the whole friend group:


πŸ’€ reminder that all of these are (9) β€” kernel API section, not section 1. iykyk.

okay bye bestie, go forth and add your strings πŸŒΈπŸ’–

this page came from ./drivers/of and it's dated October 2026 β€” that's the source and the date, mwah, love u, drink some water πŸ“πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from