phylink_get_capabilities(9)
π phylink_get_capabilities(9) π
okay so bestie, welcome to the kernel API manual for phylink_get_capabilities β yes it's a section 9 page, yes it's about networking, no you don't have to be scared π«Ά
β¨ NAME β¨
phylink_get_capabilities β get capabilities for a given MAC π
πΈ SYNOPSIS πΈ
unsigned long phylink_get_capabilities (phy_interface_t interface ,
unsigned long mac_capabilities , int rate_matching );
like, that's the whole signature, no cap β¨
π ARGUMENTS π
interfaceβ the phy interface mode, defined bytypedef phy_interface_t. so this is your ~vibe~ of connection, iykyk πmac_capabilitiesβ a bitmask of MAC capabilities. bitmask!! so it's a bunch of little yes/no flags all squished into one number, iconic honestly πrate_matchingβ the type of rate matching being performed. which flavour of rate matching we're doing rn π¦
π DESCRIPTION π
Get the MAC capabilities that are supported by the interface mode and mac_capabilities.
that's literally it, that's the whole function β you hand it an interface mode and a bitmask of MAC capabilities, and it gives you back the MAC capabilities that actually work for that combo. lowkey elegant, highkey useful π
ngl it's giving "filter function but make it kernel networking" and honestly? obsessed π§
β SEE ALSO β
- Kernel file
./drivers/net/phy/phylink.cstruct phylink(9) phylink_set_port_modes(9)phylink_interface_max_speed(9)phylink_caps_to_link_caps(9)phylink_caps_to_linkmodes(9)phylink_limit_mac_speed(9)phylink_cap_from_speed_duplex(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 the whole phylink friend group fr fr β go read them, they're all icons πβ¨
kay that's the page!! this one came from ./drivers/net/phy and it's dated October 2026 β so mark your calendars bestie π
π go forth and get those capabilities, you're gonna slay ππ₯
π¦ 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