phy_exit(9)
π phy_exit β Phy internal un-initialization β¨
Hiiii bestie π«Ά so this is phy_exit(9) from the Kernel API Manual, and ngl it's the "okay we're done here, wrap it up" function for a phy. Think of it as the un-init era of the phy lifecycle. Let's get into it π
πΈ SYNOPSIS πΈ
int phy_exit (struct phy *phy );
π ARGUMENTS π
phyβ the phy that came back fromphy_get. iykyk, it's the same one you grabbed earlier π
β¨ DESCRIPTION β¨
So likeβ¦ you must call this after phy_power_off. No skipping, bestie π it's literally in the rules. Power it off first, then exit. The vibes are sequential, periodt π
π₯ RETURN π₯
Returns 0 if everything slayed successfully β¨ β and if it didn't? It hands back a negative error code. Not a great vibe check, but at least it's honest π₯²
π SEE ALSO π
Kernel file ./drivers/phy/phy-core.c plus the whole phy friend group π¦:
phy_create_lookup(9)phy_remove_lookup(9)phy_init(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)phy_release(9)
Okay that's the whole thing, bestie π§π no cap, you're now a phy-exit expert. This manual page lived in ./drivers/phy and was dated October 2026 β iconic of it honestly πβ go forth and un-initialize responsibly π
π
π¦ 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