devm_phy_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… devm_phy_put(9) β€” like, the whole manual page, bestie

okay so real talk, this is a page from the Kernel API Manual (yes, the devm_phy_put(9) one, the header said it, I'm just folding it in here so it's not floating around all lonely at the top πŸ’–). Strap in, this one's short but it matters.


✨ NAME ✨

devm_phy_put β€” release the PHY πŸ¦‹

like, that's the whole vibe. you got a phy, and now you're giving it back.


🌸 SYNOPSIS 🌸

void devm_phy_put(struct device *dev, struct phy *phy);

look at her. two arguments, no return value, no drama. main character energy honestly πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device that wants to release this phy. it's the one doing the letting-go 🫢
  • phy β€” the phy returned by devm_phy_get. (so like, the exact one you got handed earlier β€” don't be out here making up new ones, iykyk πŸ’€)

πŸ’œ DESCRIPTION πŸ’œ

okay so what actually happens: it destroys the devres associated with this phy and then invokes phy_put to release the phy. that's it. that's the whole function. clean, simple, iconic ✨

destroys the devres, calls phy_put, phy is released, everybody goes home πŸ πŸ’…


🌈 SEE ALSO 🌈

bestie there are so many friends in this friend group, I'm not skipping a single one 😭

Kernel file ./drivers/phy/phy-core.c β€” plus all of these:


fr fr though β€” if you're holding a phy from devm_phy_get, this is how you let it go. don't ghost it, that's not the move πŸ™ˆ

and that's the page!! πŸ’– this came out of ./drivers/phy (the source, bestie, that's the dir), dated October 2026, and it's officially the devm_phy_put(9) page β€” mwah, bye πŸŽ€πŸ¦‹β­

πŸ“¦ where this page comes from