STRUCT MDIO_DEVICE_ID(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct mdio_device_id(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ this page is literally about struct mdio_device_id, and its whole thing is identifying PHY devices on an MDIO/MII bus. no cap, that's the vibe. πŸ¦‹

🌸 NAME 🌸

struct mdio_device_id β€” identifies PHY devices on an MDIO/MII bus. periodt. πŸ’…

✨ SYNOPSIS ✨

here's the struct in all its main-character glory, bestie:

struct mdio_device_id {
    __u32 phy_id;
    __u32 phy_id_mask;
};

πŸŽ€ Members πŸŽ€

  • phy_id β€” the result of (mdio_read(MII_PHYSID1) << 16 | mdio_read(MII_PHYSID2)) & phy_id_mask for this PHY type. lowkey iconic how it just vibes with the mask. πŸ’œ
  • phy_id_mask β€” defines the significant bits of phy_id. a value of 0 is used to terminate an array of struct mdio_device_id. so yeah, zero is the "we're done here" signal, fr fr. πŸ›‘

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./include/linux/device-id/mdio.h β€” go read it, bestie, it's giving lore. πŸ‘‘

mwah πŸ’‹ β€” this page is from source/version ./include/linux/device-id, dated October 2026, and it's literally struct mdio_device_id(9). 🫢

πŸ“¦ where this page comes from