STRUCT MDIO_DEVICE_ID(9)
π 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_maskfor this PHY type. lowkey iconic how it just vibes with the mask. πphy_id_maskβ defines the significant bits ofphy_id. a value of0is used to terminate an array ofstruct 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
- 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