phy_remove_link_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to phy_remove_link_mode, straight out of the Kernel API Manual. This is the little helper that goes "girl, you're not doing that link mode" and removes it. Periodt. πŸŽ€


✨ NAME ✨

phy_remove_link_mode β€” Remove a supported link mode πŸ¦‹


🌸 SYNOPSIS 🌸

void phy_remove_link_mode (struct phy_device *phydev , u32 link_mode );

πŸ’– ARGUMENTS πŸ’–

  • phydev β€” the phy_device structure you're removing the link mode from. Like, this is the PHY we're editing, bestie 🫢
  • link_mode β€” the link mode that's getting yeeted. Removed. Gone. πŸ’…

⭐ DESCRIPTION ⭐

okay so here's the tea β˜• β€” some MACs simply do not support all the link modes that the PHY does. Not their fault, they're just built different 😭. Example: a 1G MAC often does not support 1000Half. So the kernel adds this helper to remove a link mode. That's literally it. Iconic, lowkey ✨.


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/net/phy/phy_device.c β€” and the whole friend group:

phy_uses_state_machine(9), phy_register_fixup(9), genphy_match_phy_device(9), get_phy_c45_ids(9), get_phy_c22_id(9), get_phy_device(9), phy_device_register(9), phy_device_remove(9), phy_get_c45_ids(9), phy_find_next(9), phy_prepare_link(9), phy_connect_direct(9), phy_connect(9), phy_disconnect(9), phy_poll_reset(9), phy_sfp_connect_phy(9), phy_sfp_disconnect_phy(9), phy_sfp_attach(9), phy_sfp_detach(9), phy_sfp_probe(9), phy_attach_direct(9), phy_detach(9), phy_reset_after_clk_enable(9), genphy_config_advert(9), genphy_c37_config_advert(9), genphy_setup_forced(9), genphy_restart_aneg(9), genphy_check_and_restart_aneg(9), __genphy_config_aneg(9), genphy_c37_config_aneg(9), genphy_aneg_done(9), genphy_update_link(9), genphy_read_status_fixed(9), genphy_read_status(9), genphy_c37_read_status(9), genphy_soft_reset(9), genphy_read_abilities(9), phy_advertise_supported(9), phy_advertise_eee_all(9), phy_support_eee(9), phy_disable_eee(9), phy_support_sym_pause(9), phy_support_asym_pause(9), phy_set_sym_pause(9), phy_set_asym_pause(9), phy_validate_pause(9), phy_get_pause(9), phy_get_internal_delay(9), phy_get_tx_amplitude_gain(9), phy_get_mac_termination(9), phy_get_sfp_port(9), fwnode_mdio_find_device(9), fwnode_phy_find_device(9), fwnode_get_phy_node(9), phy_probe(9), phy_driver_register(9)


ngl bestie, that's a lot of friends. but like, main character energy requires a big group chat, iykyk πŸ’€πŸ’œ

🧚 cute little sign-off 🧚

this page lives in ./drivers/net/phy, dated October 2026 β€” no cap, that's the whole footer. slay πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from