phy_disable_eee_mode(9)
π phy_disable_eee_mode β the "stop bragging about that EEE mode" page π
okay bestie so you're in the Kernel API Manual, section 9, and the function we're stanning today is phy_disable_eee_mode(9). she's a little void function, she does one thing, and she does it well. let's get into it π«Ά
β¨ NAME β¨
phy_disable_eee_mode β literally "Don't advertise an EEE mode." that's it. that's the whole vibe. she's telling the world (well, the link partner) that this particular EEE mode is sooo not on the menu π
ββοΈ
πΈ SYNOPSIS πΈ
void phy_disable_eee_mode (struct phy_device *phydev , u32 link_mode );
note the void β she gives you nothing back, no return value, no drama, no exit status. she just does the thing and dips. iconique π
π¦ ARGUMENTS π¦
two little besties walk into a function:
phydevβ Thephy_devicestruct. this is your main character, the phy device you're working with. everything happens through her β¨link_modeβ The EEE mode to be disabled, as au32. this is the specific mode you're kicking out of the advertised lineup. not all of them, bestie, just this one π―
π SEE ALSO π
bestie. sit down. hydrate. this is a long list and i'm not skipping a single one because every single one of them matters π. it's all from the kernel file ./include/linux/phy.h:
enum phy_interface_t(9)phy_modes(9)rgmii_clock(9)struct mdio_bus_stats(9)struct mii_bus(9)mdiobus_alloc(9)enum phy_state(9)struct phy_c45_device_ids(9)struct phy_oatc14_sqi_capability(9)struct phy_device(9)struct phy_tdr_config(9)enum link_inband_signalling(9)struct phy_plca_cfg(9)struct phy_plca_status(9)struct phy_led(9)struct phy_mse_capability(9)struct phy_mse_snapshot(9)struct phy_driver(9)phy_id_compare(9)phy_id_compare_vendor(9)phy_id_compare_model(9)phydev_id_compare(9)phy_is_started(9)phy_driver_is_genphy(9)phy_can_wakeup(9)phy_may_wakeup(9)phy_read(9)__phy_read(9)phy_write(9)__phy_write(9)__phy_modify_changed(9)phy_read_mmd_poll_timeout(9)__phy_set_bits(9)__phy_clear_bits(9)phy_set_bits(9)phy_clear_bits(9)__phy_set_bits_mmd(9)__phy_clear_bits_mmd(9)phy_set_bits_mmd(9)phy_clear_bits_mmd(9)phy_interrupt_is_valid(9)phy_polling_mode(9)phy_has_hwtstamp(9)phy_has_rxtstamp(9)phy_has_tsinfo(9)phy_has_txtstamp(9)phy_is_default_hwtstamp(9)phy_on_sfp(9)phy_interface_mode_is_rgmii(9)phy_interface_mode_is_8023z(9)phy_interface_is_rgmii(9)phy_is_pseudo_fixed_link(9)phy_module_driver(9)
like. that's the whole friend group π and yes, if you're reading this function you should probably go read at least the ones about struct phy_device(9) and the bit-twiddling crew. iykyk β¨
ngl there's no return value and no error to check here β this is a plain void. no exit status, no signals, no surprises. so don't go looking for a "but what if it fails" section, because she said what she said π
and that's the whole page, bestie!! sourced from ./include/linux, dated October 2026, and honestly? a slay. go forth and not-advertise that EEE mode π§ββοΈππ
π¦ 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