of_phy_package_join(9)
okay so bestie, welcome to the of_phy_package_join(9) page from the Kernel API Manual π this one is literally about joining a common PHY group in a PHY package, and itβs giving βgroup chat but make it PHYβ energy π.
π NAME π
of_phy_package_join β join a common PHY group in PHY package
β¨ SYNOPSIS β¨
int of_phy_package_join (struct phy_device *phydev , size_t priv_size );
π«Ά ARGUMENTS π«Ά
phydevβ targetphy_devicestructpriv_sizeβ if non-zero allocate this amount of bytes for private data
πΈ DESCRIPTION πΈ
okay so hereβs the tea β this is a variant of phy_package_join for a PHY package defined in DT.
The parent node of the phydev is checked as a valid PHY package node structure β by matching the node name "ethernet-phy-package" β and the base_addr for the PHY package is passed to phy_package_join. no cap, thatβs the whole vibe check π₯
With this configuration the shared struct will also have the np value filled to use additional DT defined properties in PHY specific probe_once and config_init_once PHY package OPs. slay β¨
Returns < 0 on error, 0 on success. Esp. calling phy_package_join with the same cookie but a different priv_size is an error. Or a parent node is not detected or is not valid or doesnβt match the expected node name for PHY package. π like, those are the error girlies, fr fr.
π¦ SEE ALSO π¦
- Kernel file
./drivers/net/phy/phy_package.cstruct 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)phy_package_leave(9)devm_phy_package_join(9)devm_of_phy_package_join(9)
mwah π source/version line: ./drivers/net/phy; date: October 2026; page: of_phy_package_join(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