phy_write_mmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… phy_write_mmd(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so you're in the kernel API manual (section 9, the fancy one ✨) and you found phy_write_mmd β€” congrats, you're about to write a register on an MMD on a given PHY. Iconic behaviour honestly πŸ’–


🌸 NAME 🌸

phy_write_mmd β€” the convenience function for writing a register on an MMD on a given PHY. that's it, that's the whole vibe 🫢


✨ SYNOPSIS ✨

int phy_write_mmd (struct phy_device *phydev , int devad , u32 regnum ,
       u16 val );

look at that signature. main character energy, no cap πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • phydev β€” the phy_device struct. your PHY, your moment πŸ’«
  • devad β€” the MMD to read from πŸ‘€ (yes the original says "read from", we're keeping it fr fr)
  • regnum β€” the register on the MMD to read πŸ“–
  • val β€” value to write to regnum. this is the whole point bestie ✍️

🌈 DESCRIPTION 🌈

same rules as for phy_write. that's literally the whole description and honestly? we stan a concise queen πŸ’…

ngl it's giving "read the phy_write page too" β€” so go read it, iykyk 😭

πŸŽ€ SEE ALSO πŸŽ€

kernel file ./drivers/net/phy/phy-core.c and like, an entire friend group of functions:

all of them slay in their own way, go say hi 🫢✨


and that's the page!! sign-off time: this one lives in the source/version corner ./drivers/net/phy, dated October 2026 β€” so like, future-coded but make it kernel πŸ•°οΈπŸ’œ bye bestie, go write that register πŸ’…πŸ”₯

πŸ“¦ where this page comes from