of_phy_find_device(9)
π
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 π
- Kernel file
./drivers/net/mdio/of_mdio.c __of_mdiobus_register(9)of_mdio_find_device(9)of_phy_connect(9)of_phy_get_and_connect(9)
mwah π this pageβs source/version is ./drivers/net/mdio, dated October 2026. iconic. π
π¦ 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