software_no...r_node_group(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” a NULL terminated array of software node pointers that you want unregistered. Yes, NULL terminated, 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:


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