phylink_mii_c22_pcs_config(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the Kernel API Manual page for phylink_mii_c22_pcs_config(9) πŸ’– this is the lil' function that handles Clause 22 PCS config energy, and we're gonna read it together, no cap.


🌸 NAME 🌸

phylink_mii_c22_pcs_config β€” configure clause 22 PCS ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

the signature is giving:

int phylink_mii_c22_pcs_config (struct mdio_device *pcs ,
phy_interface_t interface , const unsigned long *advertising , unsigned
int neg_mode );

πŸ’… ARGUMENTS πŸ’…

  • pcs β€” a pointer to a struct mdio_device. literally the device bestie we're working with.
  • interface β€” the PHY interface mode being configured. the vibe check for the interface, iykyk.
  • advertising β€” the ethtool advertisement mask. this is the mask of what we're advertising, periodt.
  • neg_mode β€” PCS negotiation mode. the negotiation setting, fr fr.

✨ DESCRIPTION ✨

okay so this one configures a Clause 22 PCS PHY with the appropriate negotiation parameters for the mode, interface and advertising parameters. very "set it up correctly and let it slay" energy πŸ’…

it returns a negative error number on failure, zero if the advertisement has not changed, or positive if there is a change. so like: bad news 😭, no change 😐, or we got a change πŸ”₯.

πŸŽ€ SEE ALSO πŸŽ€

peep the kernel file ./drivers/net/phy/phylink.c, struct 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_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_an_restart(9), phylink_replay_link_begin(9), phylink_replay_link_end(9).

that's the whole extended universe, bestie 🌈


this cutie is filed under ./drivers/net/phy, stamped October 2026, and lives in the Kernel API Manual as phylink_mii_c22_pcs_config(9) β€” slay and goodbye πŸŽ€βœ¨

πŸ“¦ where this page comes from