software_no...r_node_group(9)
β¨ NAME β¨
software_node_unregister_node_group β bestie, this is the one that unregisters a whole group of software nodes in one go π
(also, hi, this is page software_no...r_node_group(9) from the Kernel API Manual, luv u π)
β¨ SYNOPSIS β¨
void software_node_unregister_node_group (const struct software_node *
const *node_group );
β¨ ARGUMENTS β¨
node_groupβ aNULLterminated array of software node pointers that you want unregistered. Yes,NULLterminated, like the world's least dramatic guest list π
β¨ DESCRIPTION β¨
Okay so picture this: you've got a bunch of software nodes and you want them gone, all at once, no cap. That's literally this function. Multiple software nodes, one call, slay β¨
But here's the catch, and it's a real one, so listen up π β if parent pointers are set up in any of the software nodes, then the array must be ordered so that parents come before their children. Not vibes-based ordering. Actual ordering. Periodt.
π NOTE π
And if you're sitting there like "hmm, am I sure my array is ordered so parents get unregistered before their children?" β¦ the manpage says, very gently: it is wiser to remove the nodes individually instead, in the correct order β that's child before parent, bestie π«Ά
Not me warning you twice about ordering, but like, the parent/child order flips depending on whether you're doing it in a group or one by one. Read that again. I'll wait. π
π SEE ALSO π
Kernel file ./drivers/base/swnode.c β plus these icons:
property_entries_dup(9)property_entries_free(9)software_node_find_by_name(9)software_node_register_node_group(9)software_node_register(9)software_node_unregister(9)device_add_software_node(9)device_remove_software_node(9)device_create_managed_software_node(9)
okay that's the whole page, go forth and unregister responsibly π¦π
β the ./drivers/base girlies, October 2026, page software_no...r_node_group(9) πβ¨
π¦ 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