devm_of_phy_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ devm_of_phy_get(9) β€” Kernel API Manual

okay bestie, welcome to the Kernel API Manual page for devm_of_phy_get(9) β€” this is the one where we look up a phy and obtain a reference to it. no cap, the devm girlies are gonna eat. πŸ’…

✨ NAME ✨

devm_of_phy_get β€” lookup and obtain a reference to a phy. πŸŽ€

🌸 SYNOPSIS 🌸

struct phy * devm_of_phy_get (struct device *dev , struct device_node
       *np , const char *con_id );

🫢 ARGUMENTS 🫢

  • dev β€” the device that requests this phy.
  • np β€” the node containing the phy.
  • con_id β€” the name of the phy from the device's point of view.

πŸ’– DESCRIPTION πŸ’–

So here's the vibe, bestie: it gets the phy using of_phy_get, and then associates a device with it using devres. ✨

On driver detach, the release function is invoked on the devres data, and then the devres data is freed. That's the whole little lifecycle β€” iconic, honestly. πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

The kernel file is ./drivers/phy/phy-core.c β€” go peek at it for the full lore. πŸ‘‘


./drivers/phy Β· October 2026 Β· devm_of_phy_get(9) β€” that's the source/version and date, bestie. byeee, go get that phy reference πŸ’œπŸŒˆ

πŸ“¦ where this page comes from