phylink_interface_max_speed(9)
π NAME π
ok so phylink_interface_max_speed β it gets you the maximum speed of a phy interface, bestie. that's the whole vibe. this is a page from the Kernel API Manual, and honestly? iconic of it.
β¨ SYNOPSIS β¨
int phylink_interface_max_speed (phy_interface_t interface );
like literally one function, one argument, we love a minimal queen π
π¦ ARGUMENTS π¦
interfaceβ the phy interface mode, and it's defined bytypedef phy_interface_t. that's it. that's the whole input. she's low maintenance π
πΈ DESCRIPTION πΈ
okay so the whole point of this one: it determines the maximum speed of a phy interface. simple. elegant. main character energy.
and why do we care? because this is intended to help determine the correct speed to pass to the MAC when the phy is performing rate matching. that's the actual use case β rate matching, when the phy is doing the matching. so you don't have to guess, you just call the function and it tells you the max speed, no cap π
π RETURN π
it returns the maximum speed of interface. that's the tea. that's the answer. periodt β¨
π SEE ALSO π
okay this list is a whole squad, buckle up bestie β the kernel file ./drivers/net/phy/phylink.c plus struct phylink(9), and then the entire friend group:
phylink_set_port_modes(9)phylink_caps_to_link_caps(9)phylink_caps_to_linkmodes(9)phylink_limit_mac_speed(9)phylink_cap_from_speed_duplex(9)phylink_get_capabilities(9)phylink_validate_mask_caps(9)phylink_pcs_neg_mode(9)phylink_set_fixed_link(9)phylink_create(9)phylink_destroy(9)phylink_expects_phy(9)phylink_connect_phy(9)phylink_of_phy_connect(9)phylink_fwnode_phy_connect(9)phylink_disconnect_phy(9)phylink_mac_change(9)phylink_pcs_change(9)phylink_start(9)phylink_stop(9)phylink_rx_clk_stop_block(9)phylink_rx_clk_stop_unblock(9)phylink_suspend(9)phylink_prepare_resume(9)phylink_resume(9)phylink_ethtool_get_wol(9)phylink_ethtool_set_wol(9)phylink_ethtool_ksettings_get(9)phylink_ethtool_ksettings_set(9)phylink_ethtool_nway_reset(9)phylink_ethtool_get_pauseparam(9)phylink_ethtool_set_pauseparam(9)phylink_get_eee_err(9)phylink_ethtool_get_eee(9)phylink_ethtool_set_eee(9)phylink_mii_ioctl(9)phylink_speed_down(9)phylink_speed_up(9)phylink_decode_usxgmii_word(9)phylink_decode_usgmii_word(9)phylink_mii_c22_pcs_decode_state(9)phylink_mii_c22_pcs_get_state(9)phylink_mii_c22_pcs_encode_advertisement(9)phylink_mii_c22_pcs_config(9)phylink_mii_c22_pcs_an_restart(9)phylink_replay_link_begin(9)phylink_replay_link_end(9)
like, that's a full roster. whole friend group showed up to the function's birthday party ππ
anyway that's the page!! came from the source tree at ./drivers/net/phy, dated October 2026, and this whole thing is phylink_interface_max_speed(9) β go read the other ones too, iykyk π«Άβ¨
π¦ 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