hw_r_phy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Welcome to hw_r_phy(9) from the Kernel API Manual, bestie πŸ’– This is the routine whose whole job is to read data from a PHY register. That’s the name, that’s the mission, no cap.

✨ SYNOPSIS ✨

void hw_r_phy (struct ksz_hw *hw , int port , u16 reg , u16 *val );

πŸŽ€ ARGUMENTS πŸŽ€

  • hw β€” the hardware instance. Your main-character hardware struct 🫢
  • port β€” the port to read. Gotta know which port we’re looking at.
  • reg β€” the PHY register to read. This is the specific register in question, bestie.
  • val β€” the buffer to store the read data. The read data goes here, iconic behavior πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture this: this routine reads data from the PHY register. That’s the whole plot. It’s void, so there’s no return value to catch β€” the read data goes into the val buffer you passed in. Simple, clean, lowkey essential ✨

🌈 SEE ALSO 🌈

The kernel file this lives in is ./drivers/net/ethernet/micrel/ksz884x.c, and the whole friend group is tagged in below β€” yes, every single one, because we do not leave anyone on read πŸ’…


okay that’s the page, bestie β€” source/version ./drivers/net/ethernet/micrel, dated October 2026. stay iconic πŸ’…βœ¨

πŸ“¦ where this page comes from