genphy_c45_ethtool_set_eee(9)
π 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 targetphy_devicestruct π«Ά like, the phy we're talking to, she's the onedataβ theethtool_keeedata β 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 π
0if 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 π
genphy_c45_baset1_able(9)genphy_c45_pma_can_sleep(9)genphy_c45_pma_resume(9)genphy_c45_pma_suspend(9)genphy_c45_pma_baset1_setup_master_slave(9)genphy_c45_pma_setup_forced(9)genphy_c45_an_config_aneg(9)genphy_c45_an_disable_aneg(9)genphy_c45_restart_aneg(9)genphy_c45_check_and_restart_aneg(9)genphy_c45_pma_soft_reset(9)genphy_c45_an_setup_master_slave(9)genphy_c45_read_master_slave(9)genphy_c45_aneg_done(9)genphy_c45_read_link(9)genphy_c45_read_lpa(9)genphy_c45_pma_baset1_read_master_slave(9)genphy_c45_read_pma(9)genphy_c45_read_mdix(9)genphy_c45_write_eee_adv(9)genphy_c45_read_eee_adv(9)genphy_c45_read_eee_lpa(9)genphy_c45_read_eee_cap1(9)genphy_c45_read_eee_cap2(9)genphy_c45_read_eee_abilities(9)genphy_c45_an_config_eee_aneg(9)genphy_c45_pma_baset1_read_abilities(9)genphy_c45_pma_read_ext_abilities(9)genphy_c45_pma_read_abilities(9)genphy_c45_read_status(9)genphy_c45_config_aneg(9)genphy_c45_fast_retrain(9)genphy_c45_plca_get_cfg(9)genphy_c45_plca_set_cfg(9)genphy_c45_plca_get_status(9)genphy_c45_eee_is_active(9)genphy_c45_ethtool_get_eee(9)oatc14_cable_test_get_result_code(9)genphy_c45_oatc14_cable_test_get_status(9)genphy_c45_oatc14_cable_test_start(9)oatc14_update_sqi_capability(9)genphy_c45_oatc14_get_sqi_max(9)genphy_c45_oatc14_get_sqi(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms