mdio45_ethto...settings_get(9)
π mdio45_ethtool_ksettings_get β a Kernel API Manual moment π
okay bestie, welcome to the kernel API manual, this one's about mdio45_ethtool_ksettings_get(9) and honestly it's giving "small function, big responsibilities" energy. let's get into it π«Ά
β¨ NAME β¨
mdio45_ethtool_ksettings_get β get settings for ETHTOOL_GLINKSETTINGS π
π SYNOPSIS π
void mdio45_ethtool_ksettings_get (const struct mdio_if_info *mdio ,
struct ethtool_link_ksettings *cmd );
π ARGUMENTS π
mdioβ the MDIO interface, aka the whole reason we're here π¦cmdβ the Ethtool request structure, the vessel that carries the settings π«
π§ DESCRIPTION π§
so here's the tea β β the CSRs for auto-negotiation using next pages are not fully standardised, and because of that this function literally does not even attempt to decode them. not its job, not its problem, no cap π
if you're trying to specify advertisement bits from next pages, you gotta go use mdio45_ethtool_ksettings_get_npage instead, iykyk π
π₯ SEE ALSO π₯
like, go read these too, they're all icons π
- Kernel file
./include/linux/mdio.h struct mdio_if_info(9)mmd_eee_cap_to_ethtool_sup_t(9)mmd_eee_adv_to_ethtool_adv_t(9)ethtool_adv_to_mmd_eee_adv_t(9)linkmode_adv_to_mii_10gbt_adv_t(9)mii_10gbt_stat_mod_linkmode_lpa_t(9)mii_t1_adv_l_mod_linkmode_t(9)mii_t1_adv_m_mod_linkmode_t(9)linkmode_adv_to_mii_t1_adv_l_t(9)linkmode_adv_to_mii_t1_adv_m_t(9)mii_eee_cap1_mod_linkmode_t(9)mii_eee_cap2_mod_linkmode_sup_t(9)mii_eee_cap2_mod_linkmode_adv_t(9)linkmode_to_mii_eee_cap1_t(9)linkmode_to_mii_eee_cap2_t(9)mii_10base_t1_adv_mod_linkmode_t(9)linkmode_adv_to_mii_10base_t1_t(9)mii_c73_mod_linkmode(9)mdio_module_driver(9)
and that's the whole page bestie, no crumbs left behind, we ate and left no evidence π
okay so the source on this one lives in ./include/linux and it's dated October 2026 β shoutout to the kernel docs for keeping it cute, mwah πβ¨πΈ
π¦ 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