fwnode_phy_find_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ fwnode_phy_find_device(9) πŸ¦‹

okay bestie, welcome to the Kernel API Manual page for fwnode_phy_find_device(9) β€” this is the PHY-finding glow-up and we are getting into it. ✨


πŸ’– NAME πŸ’–

fwnode_phy_find_device β€” for the provided phy_fwnode, find phy_device. That's the whole mission, no cap. πŸ‘‘

🌸 SYNOPSIS 🌸

struct phy_device * fwnode_phy_find_device (struct fwnode_handle
       *phy_fwnode );

πŸŽ€ ARGUMENTS πŸŽ€

  • phy_fwnode β€” pointer to the phy's fwnode. That's the input, bestie; hand it over and let the function do its thing. πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

If it's successful, it returns a pointer to the phy_device with the embedded struct device refcount incremented by one. If it's not successful? You get NULL on failure. That's the vibe check: real pointer with the refcount bumped by one, or NULL. 😭

🌈 SEE ALSO 🌈

Kernel file ./drivers/net/phy/phy_device.c β€” the source neighborhood where this lives, bestie. 🫢

Here's the whole PHY friend group, in order:

xoxo, from ./drivers/net/phy β€” October 2026 β€” page fwnode_phy_find_device(9) πŸ’–

πŸ“¦ where this page comes from