devm_phy_put(9)
π 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 bydevm_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:
phy_create_lookup(9)phy_remove_lookup(9)phy_init(9)phy_exit(9)phy_power_on(9)phy_power_off(9)phy_calibrate(9)phy_notify_connect(9)phy_notify_disconnect(9)phy_notify_state(9)phy_configure(9)phy_validate(9)_of_phy_get(9)of_phy_get(9)of_phy_put(9)phy_put(9)of_phy_simple_xlate(9)phy_get(9)devm_phy_get(9)devm_phy_optional_get(9)devm_of_phy_get(9)devm_of_phy_optional_get(9)devm_of_phy_get_by_index(9)phy_create(9)devm_phy_create(9)phy_destroy(9)devm_phy_destroy(9)__of_phy_provider_register(9)__devm_of_phy_provider_register(9)of_phy_provider_unregister(9)devm_of_phy_provider_unregister(9)phy_release(9)
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
- 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