devm_of_phy_package_join(9)
π NAME π
devm_of_phy_package_join β the resource-managed glow-up of of_phy_package_join(), bestie β¨
So like, this page lives in the Kernel API Manual, and it's honestly giving "small function, big responsibilities" energy π
π¦ SYNOPSIS π¦
int devm_of_phy_package_join (struct device *dev , struct phy_device
*phydev , size_t priv_size );
πΈ ARGUMENTS πΈ
devβ the device that's registering this PHY package. Like, this is the main character introducing itself to the group chat πphydevβ the targetphy_devicestruct we're joining. The one we're sliding into the DMs of, lowkey π«Άpriv_sizeβ if it's non-zero, we allocate exactly this many bytes for private data. Zero means... no extra storage, no cap π
β¨ DESCRIPTION β¨
Okay so real talk: this is the managed version of of_phy_package_join. The shared storage gets fetched by this function, and then phy_package_leave is automatically called on driver detach β like the kernel handling the breakup for you so you don't have to send that awkward text π iconic devm behaviour fr fr.
Wanna know more? Go read of_phy_package_join, it's the whole lore π
π SEE ALSO π
Kernel file ./drivers/net/phy/phy_package.c and struct phy_package_shared(9), plus the whole friend group:
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)phy_package_leave(9)devm_phy_package_join(9)
That's the whole page, bestie β read it, learn it, live it π β¨
This cutie lives in ./drivers/net/phy, and the version tag is dated October 2026. K byeee, go join some PHY packages π¦πΈπ
π¦ 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