of_get_phy_mode(9)
π of_get_phy_mode(9) π
πΈ NAME πΈ
This is the of_get_phy_mode(9) page from the Kernel API Manual, and it's literally all about getting phy mode for a given device_node. π
β¨
β¨ SYNOPSIS β¨
int of_get_phy_mode (struct device_node *np , phy_interface_t *interface
);
π ARGUMENTS π
npβ pointer to the givendevice_nodeπ«Άinterfaceβ pointer to the result π
π¦ DESCRIPTION π¦
okay so here's the tea: the function gets phy interface string from property 'phy-mode' or interface and 0 returned. That's the page's wording, bestie β I'm not editing the lore. ππ
In case of error, interface is set to PHY_INTERFACE_MODE_NA, and an errno is returned, e.g. -ENODEV. ππ₯
π SEE ALSO π
- Kernel file
./net/core/of_net.c of_get_mac_address(9)of_get_ethdev_address(9)π
cute little sign-off: this one lives under ./net/core, dated October 2026, and it's the of_get_phy_mode(9) page. mwah πβ¨π
π¦ 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