of_platform_depopulate(9)
π 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:
of_find_device_by_node(9)of_device_alloc(9)of_platform_device_create_pdata(9)of_platform_device_create(9)of_platform_bus_create(9)of_platform_bus_probe(9)of_platform_populate(9)devm_of_platform_populate(9)devm_of_platform_depopulate(9)
π 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
- 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