phy_package_leave(9)
π phy_package_leave(9)
okay so this is a page from the Kernel API Manual, and the function we're stanning today is phy_package_leave β she's the one who leaves the group chat. no cap.
β¨ NAME β¨
phy_package_leave β leave a common PHY group π«Ά
πΈ SYNOPSIS πΈ
void phy_package_leave (struct phy_device *phydev );
π ARGUMENTS π
phydevβ the targetphy_devicestruct. bestie, this is the PHY you're pulling out of the group π«
π¦ DESCRIPTION π¦
so here's the vibe: this function leaves a PHY group β specifically one that was created by phy_package_join. like, you joined the server, now you're dipping π
and here's the part that's lowkey important: if this phydev happened to be the last user of the shared data between the group, then that data gets freed. last one out turns off the lights, fr fr. π
it also resets the phydev->shared pointer to NULL. clean break. no leftover read receipts. β¨
π SEE ALSO π
- Kernel file
./drivers/net/phy/phy_package.c - struct
phy_package_shared(9) phy_package_lock(9)phy_package_unlock(9)__phy_package_read_mmd(9)__phy_package_write_mmd(9)phy_package_join(9)of_phy_package_join(9)devm_phy_package_join(9)devm_of_phy_package_join(9)
like, literally the whole friend group of PHY package functions. go read them, iykyk π
π§ reminder bestie: this page lives in ./drivers/net/phy, and it's dated October 2026. slay, go free that shared data responsibly πππ
phy_package_leave(9) β periodt. π
π¦ 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