of_platform_depopulate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– of_platform_depopulate(9) πŸ’–

okay bestie, this one is from the Kernel API Manual, and it's giving β€œclean up the device-tree children” energy. periodt.


🌸 NAME 🌸

of_platform_depopulate β€” remove devices populated from the device tree


✨ SYNOPSIS ✨

void of_platform_depopulate (struct device *parent );

πŸŽ€ ARGUMENTS πŸŽ€

  • parent β€” the device whose children will be removed. yep, that's the parent getting its kiddos cleaned up πŸ’…

πŸ’… DESCRIPTION πŸ’…

So this function is complementary to of_platform_populate, iykyk. It removes children of the given device β€” and, recursively, their children too β€” but only the ones that were created from their respective device tree nodes.

And bestie, it's specific: only those get removed. Others, like manually created ones, are left unharmed. no cap, they stay safe 🫢


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/of/platform.c, plus these iconic little references:


πŸ’Œ cute little sign-off: this page comes from source/version ./drivers/of, dated October 2026, and it's literally the of_platform_depopulate(9) manual page. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from