get_phy_c22_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

get_phy_c22_id(9) is our girl, and this is the Kernel API Manual β€” okay so welcome to the PHY ID reading party, bestie, it's giving kernel networking excellence βœ¨πŸ’…

πŸŽ€ NAME πŸŽ€

get_phy_c22_id β€” reads the specified addr for its clause 22 ID.

✨ SYNOPSIS ✨

int get_phy_c22_id (struct mii_bus *bus , int addr , u32 *phy_id );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • bus β€” the target MII bus, aka the whole vibe location where the PHY lives.
  • addr β€” PHY address on the MII bus. It's the specific address, bestie.
  • phy_id β€” where to store the ID retrieved. She's the output pointer, periodt.

🌸 DESCRIPTION 🌸

Okay so this function reads the 802.3 clause 22 PHY ID from the PHY at addr on the bus, and places it in phy_id. That's the whole main character move πŸ’….

Return vibes:

  • zero on successful read and the ID is valid βœ…
  • -EIO on bus access error 😭
  • -ENODEV if no device responds or invalid ID πŸ’€

🌈 SEE ALSO 🌈

Kernel file: ./drivers/net/phy/phy_device.c β€” and here are all the sibling functions, no skips, fr fr:


And that's the whole page, bestie πŸ«ΆπŸ’– β€” sourced from ./drivers/net/phy, dated October 2026, and it's the get_phy_c22_id(9) manual page. Slay.

πŸ“¦ where this page comes from