genphy_c45_ethtool_set_eee(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– genphy_c45_ethtool_set_eee β€” the "turn EEE on/off without breaking stuff" girlie πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ this is genphy_c45_ethtool_set_eee(9) and she is literally the main character of EEE toggling, no cap πŸŽ€


🌸 NAME 🌸

genphy_c45_ethtool_set_eee β€” set EEE supported and status πŸ’…


✨ SYNOPSIS ✨

int genphy_c45_ethtool_set_eee (struct phy_device *phydev , struct
       ethtool_keee *data );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • phydev β€” the target phy_device struct 🫢 like, the phy we're talking to, she's the one
  • data β€” the ethtool_keee data ⭐ this is the payload carrying all the EEE deets

🌈 DESCRIPTION 🌈

so what she actually does πŸ‘‘ she sets the Supported / Advertisement / LP Advertisement capabilities. that's the whole vibe check, fr fr.

here's the iconic part: if eee_enabled is false, then like, no link modes get advertised β€” but the link modes that were previously advertised are retained 🀯 which means you can enable/disable EEE in a non-destructive way. it's giving respectful, considerate, doesn't burn the house down energy πŸ’€βœ¨

and the return value? she's flexible:

  • returns either an error code 😭
  • 0 if there was no change 😐 (calm, uneventful, we love a stable queen)
  • a positive value if there was a change which triggered auto-neg πŸ”₯ (something happened!! auto-neg got woken up, slay)
bestie don't forget: that non-destructive retained-advertisement behavior is the whole point of the function. don't go assuming the old modes got wiped πŸ™ˆ

🧚 SEE ALSO 🧚

Kernel file ./drivers/net/phy/phy-c45.c β€” go read her, she's iconic πŸ’œ


okay and before you go πŸŽ€ this whole page lives in ./drivers/net/phy, it's from October 2026, and it's the 9th-section Kernel API Manual entry for genphy_c45_ethtool_set_eee(9) πŸ¦‹ mwah, go set some EEE bestie, ily πŸ’–βœ¨

πŸ“¦ where this page comes from