of_phy_find_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… of_phy_find_device(9) πŸ’…

okay so bestie, this one is straight out of the Kernel API Manual, and it’s the page for of_phy_find_device(9). it’s short, it’s useful, and it’s giving β€œtiny function, big main character energy.” πŸ’–


✨ NAME ✨

of_phy_find_device β€” give a PHY node, find the phy_device

πŸ¦‹ SYNOPSIS πŸ¦‹

struct phy_device * of_phy_find_device (struct device_node *phy_np );

πŸŽ€ ARGUMENTS πŸŽ€

  • phy_np β€” a pointer to the PHY’s device tree node. literally the node. that’s the vibe. 🌸

πŸ’– DESCRIPTION πŸ’–

so here’s the tea: if it works, this function returns a pointer to the phy_device, and the embedded struct device refcount gets incremented by one. slay. 🫢

if it does not work, you get NULL on failure. no cap. πŸ’€

🌈 SEE ALSO 🌈


mwah πŸ’‹ this page’s source/version is ./drivers/net/mdio, dated October 2026. iconic. πŸ‘‘

πŸ“¦ where this page comes from