phy_mii_ioctl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay so bestie, say hi to phy_mii_ioctl(9) from the Kernel API Manual 🫢 β€” it's the generic PHY MII ioctl interface. That's the whole vibe, and it's iconic. ✨

πŸ“œ SYNOPSIS πŸ“œ

int phy_mii_ioctl (struct phy_device *phydev , struct ifreq *ifr , int
       cmd );

🧸 ARGUMENTS 🧸

  • phydev β€” the phy_device struct, aka the PHY device bestie in question.
  • ifr β€” struct ifreq for socket ioctl's. Yep, exactly for socket ioctl's.
  • cmd β€” the ioctl cmd to execute. That's the instruction, periodt.

⚠️ DESCRIPTION ⚠️

Heads up, bestie: this function is currently incompatible with the PHYCONTROL layer. It changes registers without regard to current state. Use at own risk. πŸ’€

That's the whole warning, no cap. It's giving "proceed with caution" energy, because it changes registers without regard to current state, and the manual literally says use at own risk. Not me forgetting that part β€” it's right there. πŸ”₯

🌈 SEE ALSO 🌈

Kernel file ./drivers/net/phy/phy.c is home base. Here's the whole squad, every single one:


Source/version: ./drivers/net/phy Β· date: October 2026 Β· page: phy_mii_ioctl(9). Mwah, go forth and ioctl responsibly πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from