phy_release(9)
β¨ phy_release β release the phy β¨
okay so real talk, this is a page straight out of the Kernel API Manual (yes, the Kernel API Manual, capital letters, very serious business π ), and it's about one tiny but lowkey iconic function. Let's get into it, bestie π«Ά
πΈ NAME πΈ
phy_release β release the phy
like... that's literally it. it releases the phy. main character energy, minimal words π
β SYNOPSIS β
void phy_release (struct device *dev );
that's the whole signature. no cap, that's it π₯
π ARGUMENTS π
devβ thedevmember within phy. that's the pointer you hand over, and it's the device member living inside the phy. yep, that one π¦
π DESCRIPTION π
so here's the vibe check: when the last reference to the device is removed, this function gets called from the embedded kobject as its release method. that's the entire plot. the kobject is like "okay bestie, everyone's gone, do your thing" and phy_release does its thing β¨
no extra steps, no secret sauce β it's a release method, doing release-method duties, periodt π
π SEE ALSO π
kernel file ./drivers/phy/phy-core.c β that's where the magic lives, go read it iykyk π
and the whole squad, because this function does not roll alone:
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)devm_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)
look at that roster. it's giving family reunion ππ
lowkey reminder: this page is filed under ./drivers/phy and dated October 2026 β so like, future energy fr fr π§
aaaand that's the whole page, bestie. phy_release(9) from the Kernel API Manual, ./drivers/phy, October 2026. go release some phys, slay, and remember: the kobject will call you when the last reference dips ππβ¨
π¦ 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