devm_of_phy_package_join(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 target phy_device struct 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:


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