genphy_c37_config_advert(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… genphy_c37_config_advert

okay bestie, real talk: this one is a lil kernel function from the Kernel API Manual, and honestly? it's giving "quietly doing the most." ✨


πŸŽ€ NAME

genphy_c37_config_advert β€” sanitize and advertise auto-negotiation parameters 🫢


✨ SYNOPSIS

int genphy_c37_config_advert (struct phy_device *phydev );

🌸 ARGUMENTS

  • phydev β€” target phy_device struct. that's the PHY you're doing this to, no cap πŸ’–

πŸ¦‹ DESCRIPTION

So here's the tea β˜•: this function writes MII_ADVERTISE with the appropriate values β€” but first it sanitizes those values so you only ever advertise what's actually supported. like, it does a lil vibe check on your advertisement before letting it out the door πŸ’…

it returns:

  • < 0 on error 😭
  • 0 if the PHY's advertisement hasn't changed
  • > 0 if it has changed πŸ”₯
✨ important detail, bestie: this function is intended for Clause 37 1000Base-X mode. not your average everyday mode, iykyk.

πŸ‘‘ SEE ALSO

Kernel file ./drivers/net/phy/phy_device.c β€” and honestly the whole friend group:

like okay, go off, entire subsystem 🌈


and that's the whole page, bestie πŸ’œ it lives over in ./drivers/net/phy, the Kernel API Manual version is dated October 2026, and the page title is genphy_c37_config_advert(9) β€” periodt. πŸ“πŸ§šπŸ’«

πŸ“¦ where this page comes from