__phy_read_mmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 __phy_read_mmd(9) 🌸

okay bestie, welcome to the Kernel API Manual β€” yes that Kernel API Manual, the one with the driest prose on planet earth, and we're about to make it cute πŸ’… this one's about reading a register off an MMD sitting on a PHY. tiny function, big main character energy, let's go 🫢


✨ NAME ✨

__phy_read_mmd β€” a convenience function for reading a register from an MMD on a given PHY ✨ like it literally says on the tin, no cap


πŸ¦‹ SYNOPSIS πŸ¦‹

int __phy_read_mmd (struct phy_device *phydev , int devad , u32 regnum );

πŸŽ€ ARGUMENTS πŸŽ€

  • phydev β€” the phy_device struct, aka the PHY you're poking at πŸ’–
  • devad β€” the MMD you're reading from, valid range is 0..31 πŸ‘‘
  • regnum β€” the register on that MMD you wanna read, valid range is 0..65535 ⭐
not me stressing the ranges β€” devad is 0..31 and regnum is 0..65535, that's the whole vibe check, don't come for me 😭

πŸ’€ DESCRIPTION πŸ’€

Same rules as for __phy_read β€” yep, that's it, that's the description, the kernel devs really said "iykyk" and dipped πŸ™ˆ

So like, if you already know how __phy_read behaves, you already know what's up here. if you don't… maybe go read that one first bestie, I'm just the messenger 🧚


🌈 SEE ALSO 🌈

so many siblings, this function has a whole extended family fr fr β€” all chilling in the kernel file ./drivers/net/phy/phy-core.c:


aaaand that's the whole page, you ate that πŸ’… quick little sign-off so we're being responsible: this icon lives in ./drivers/net/phy, dated October 2026, and it's filed under __phy_read_mmd(9) πŸ“ bye bestie, go read some registers πŸ¦‹

πŸ“¦ where this page comes from