of_get_phy_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 given device_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 πŸ’œ


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