phy_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ phy_read(9) β€” Kernel API Manual πŸ‘‘

okay so bestie, this is the phy_read(9) page from the Kernel API Manual, and it’s giving β€œtiny convenience function with main-character energy.” no cap. πŸ’…


🌸 NAME 🌸

phy_read β€” the convenience function for reading a given PHY register. yes, that’s literally the whole name vibe. πŸŽ€

✨ SYNOPSIS ✨

int phy_read (struct phy_device *phydev , u32 regnum );

πŸŽ€ ARGUMENTS πŸŽ€

  • phydev β€” the phy_device struct. that’s the one, bestie. 🫢
  • regnum β€” register number to read. in the synopsis it’s a u32, and it’s exactly what u think it is. ⭐

⚠️ NOTE ⚠️

🚨 MUST NOT be called from interrupt context, bestie. like, do not do it. the reason is that the bus read/write functions may wait for an interrupt to conclude the operation. so interrupt context is a hard no. periodt. πŸ’€

πŸ’… SEE ALSO πŸ’…

okay these are the linked kernel-doc besties, and yes u need every single one. iykyk. πŸ¦‹


source/version: ./include/linux Β· date: October 2026 Β· all about phy_read(9) β€” mwah, slay, bye bestie πŸ’–βœ¨

πŸ“¦ where this page comes from