devm_of_phy...r_unregister(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… devm_of_phy_provider_unregister(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ this one's a short lil baddie but she does exactly what she says on the tin, no cap πŸŽ€


🌸 NAME 🌸

devm_of_phy_provider_unregister β€” remove phy provider from the framework 🫢


✨ SYNOPSIS ✨

void devm_of_phy_provider_unregister (struct device *dev , struct
phy_provider *phy_provider );

like, that's the whole signature, she's not complicated πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the struct device of the phy provider πŸ‘‘ like, which device are we talking about here
  • phy_provider β€” the phy provider returned by of_phy_provider_register 🌈 (iykyk, that's where you got this thing in the first place)

πŸ’– DESCRIPTION πŸ’–

so basically she destroys the devres associated with this phy provider πŸ’€ and then invokes of_phy_provider_unregister to unregister the phy provider. that's it. that's the whole vibe. cleanup era, main character energy πŸ”₯

ngl, devres cleanup is one of those "don't think about it, just let it happen" situations β€” the framework handles the tears so you don't have to 😭

🧚 SEE ALSO 🧚

Kernel file ./drivers/phy/phy-core.c β€” go read her, she's iconic πŸ“–


okay that's the page bestie, go unregister something responsibly 🫢✨

this lil masterpiece lives at ./drivers/phy and she was dated October 2026 β€” periodt, she's from the future πŸ’…πŸ¦‹

πŸ“¦ where this page comes from