of_node_release(9)
π of_node_release(9) β Kernel API Manual π
okay so bestie, welcome to the glow-up of a very specific kernel function π this one lives in the Kernel API Manual, and honestly? it's a little backstage icon β nobody claps for it, but the whole show falls apart without it β¨
πΈ NAME πΈ
of_node_release β release a dynamically allocated node π¦
like, the actual cleanup girlie of the device-tree world. she frees the node. that's the whole job. and she does it flawlessly, no cap π
β¨ SYNOPSIS β¨
void of_node_release (struct kobject *kobj );
that's it. that's the whole signature. one void (she gives nothing back, she's not about that return-value life π) and one pointer. slay.
π«Ά ARGUMENTS π«Ά
kobjβ the kernel object of the node that's about to be released π so basically, this is the node's kernel-object handle, and it's the one getting the goodbye treatment. main character energy fr fr π
π DESCRIPTION π
so here's the tea β β inside of_node_put, this function gets passed to kref_put as the destructor. that's it. that's the entire vibe. she's the callback that shows up when the reference count finally hits zero and someone's gotta do the actual cleanup π
destructor duty β lowkey iconic of her honestly. kref_put calls her, she releases the dynamically allocated node, done. periodt π
β¨
π₯ SEE ALSO π₯
Kernel file ./drivers/of/dynamic.c β go read it, iykyk π§
and the whole squad she runs with:
of_node_get(9)of_node_put(9)of_attach_node(9)of_detach_node(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_add_prop_bool(9)of_changeset_update_prop_string(9)
π reminder bestie: this is release duty β she's the destructor, so she runs when the refcount says it's time. don't be out here treating her like a casual little helper function. she's the ending of an era. π
and that's the whole page, bestie π this little gem came out of the kernel source tree at ./drivers/of, dated October 2026, and yes β the manual page itself is literally named of_node_release(9) π go forth and reference-count responsibly, mwah ππ
π¦ 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