phy_notify_state(9)
π phy_notify_state(9) π
okay so this is <hotpink>phy_notify_state</hotpink> from the Kernel API Manual, section 9 β yes bestie, section 9, the ~spicy driver-internals section. it's a little function whose whole job is telling your PHY "hey girl, something changed" β¨
πΈ NAME πΈ
phy_notify_state β phy state notification. that's it, that's the whole pitch. it notifies. it's about state. iconic behaviour honestly π
π¦ SYNOPSIS π¦
int phy_notify_state (struct phy *phy , union phy_notify state );
look at her. returns an int, takes a struct phy * and a union phy_notify. clean, simple, no cap π«Ά
π ARGUMENTS π
phyβ the PHY returned byphy_get. like, the actual PHY object you already grabbed, not a fresh one. don't go making your own, that's not the vibe πstateβ the PHY state. it's aunion phy_notify, so it's carrying the state info for you. this is the "what's the tea" parameter π
β DESCRIPTION β
so basically: you call this to notify the PHY of a state transition. it's used to notify and configure the PHY accordingly β like, you tell it what just went down, and it sorts itself out to match. it's giving "texting your bestie the update and she immediately adjusts the plans" energy π
π RETURN π
0if successful πβ¨- a negative error code otherwise π β so like, check it. fr fr. don't just ignore the return value, that's not main character energy, that's side-quest-failure energy π
π SEE ALSO π
everything else in the PHY cinematic universe, and also the kernel file ./drivers/phy/phy-core.c β that's where the lore lives, iykyk π₯
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_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)
like, the whole friend group π«Ά go read them, they're all slay in their own way.
and that's the page, bestie!! π§ this little gem lives under ./drivers/phy and the version stamp on it says October 2026 β so yeah, she's from the future, we stan a forward-thinking manpage ππ
π¦ 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