of_changeset_add_prop_bool(9)
πΈ NAME πΈ
of_changeset_add_prop_bool(9) β okay bestie, this is the Kernel API Manual page for of_changeset_add_prop_bool: add a boolean property (i.e. a property without any values) to a changeset. lowkey iconic behavior, fr fr π
β¨
π SYNOPSIS π
int of_changeset_add_prop_bool (struct of_changeset *ocs , struct device_node *np , const char *prop_name );
π¦ ARGUMENTS π¦
ocsβ changeset pointer. like, the changeset bestie in question π«Άnpβ device node pointer. the device node bestie in question πΈprop_nameβ name of the property to be added. yes, the name, no cap π
β¨ DESCRIPTION β¨
Create a boolean property and add it to a changeset.
Thatβs the whole little ritual, bestie: create a boolean property, then add it to a changeset. periodt π π
π RETURN π
0 on success, a negative error value in case of an error.
so yeah: happy path gives you 0, and if something goes wrong you get a negative error value. not me being dramatic about error values ππ
π«Ά SEE ALSO π«Ά
The Kernel file is ./drivers/of/dynamic.c, and the whole squad is 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_string_array(9)of_changeset_add_prop_u32_array(9)of_changeset_update_prop_string(9)
okay thatβs the page, bestie π this one is from ./drivers/of, dated October 2026, and itβs literally of_changeset_add_prop_bool(9) β bye bye, slay responsibly πβ¨π¦
π¦ 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