get_phy_c45_ids(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 get_phy_c45_ids(9) β€” Kernel API Manual πŸ’…

okay bestie, welcome to the little corner of the Kernel API Manual where we read 802.3-c45 IDs. no cap, it’s giving β€œsmall function, very specific job” energy. ✨

✨ NAME ✨

get_phy_c45_ids β€” reads the specified addr for its 802.3-c45 IDs.

πŸŽ€ SYNOPSIS πŸŽ€

the signature, literally:

int get_phy_c45_ids (struct mii_bus *bus , int addr , struct
       phy_c45_device_ids *c45_ids );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • bus β€” the target MII bus. that’s the bus we’re working with, bestie.
  • addr β€” PHY address on the MII bus. yes, the actual address, slay.
  • c45_ids β€” where to store the c45 ID information. that’s the output spot. 🫢

πŸ’– DESCRIPTION πŸ’–

okay so this function reads the PHY "devices in package". if that looks valid, it reads the PHY identifiers for each device. then it returns the "devices in package" and the identifiers in c45_ids. πŸŽ€

Returns zero on success, -EIO on bus access error, or -ENODEV if the "devices in package" is invalid or no device responds. that’s the whole return vibe check, periodt. πŸ’…

🌈 SEE ALSO 🌈

the kernel file and the whole friend group, fr fr:


mwah πŸ’‹ this page is from ./drivers/net/phy, dated October 2026, and it’s literally get_phy_c45_ids(9). bye bestie, go read those c45 IDs 🫢✨

πŸ“¦ where this page comes from