genphy_c45_an_config_aneg(9)
β¨ genphy_c45_an_config_aneg β¨
okay so bestie, welcome to the <pink>Kernel API Manual</pink> entry for genphy_c45_an_config_aneg β this is the one that literally sets up your advertisement registers. group-chat approved π«Ά
πΈ NAME πΈ
genphy_c45_an_config_aneg β configure advertisement registers π
π¦ SYNOPSIS π¦
int genphy_c45_an_config_aneg (struct phy_device *phydev );
π ARGUMENTS π
phydevβ the targetphy_devicestruct, aka the little guy you're about to configure. main character energy fr fr π
β DESCRIPTION β
So here's the tea π: this function configures the advertisement registers based on whatever modes are set in phydev->advertising. Like, it reads the vibe check from advertising and then updates the registers to match, no cap.
And the return values? Obsessed with how clear they are:
- Returns a negative
errnocode on failure π β something went wrong, boo. - Returns
0if the advertisement didn't change β like, nothing to see here, same as before π - Returns
1if the advertised modes actually changed β glow up confirmed β¨π₯
π SEE ALSO π
Kernel file ./drivers/net/phy/phy-c45.c β and literally the whole phy-c45.c friend group, all in (9):
genphy_c45_baset1_able(9)genphy_c45_pma_can_sleep(9)genphy_c45_pma_resume(9)genphy_c45_pma_suspend(9)genphy_c45_pma_baset1_setup_master_slave(9)genphy_c45_pma_setup_forced(9)genphy_c45_an_disable_aneg(9)genphy_c45_restart_aneg(9)genphy_c45_check_and_restart_aneg(9)genphy_c45_pma_soft_reset(9)genphy_c45_an_setup_master_slave(9)genphy_c45_read_master_slave(9)genphy_c45_aneg_done(9)genphy_c45_read_link(9)genphy_c45_read_lpa(9)genphy_c45_pma_baset1_read_master_slave(9)genphy_c45_read_pma(9)genphy_c45_read_mdix(9)genphy_c45_write_eee_adv(9)genphy_c45_read_eee_adv(9)genphy_c45_read_eee_lpa(9)genphy_c45_read_eee_cap1(9)genphy_c45_read_eee_cap2(9)genphy_c45_read_eee_abilities(9)genphy_c45_an_config_eee_aneg(9)genphy_c45_pma_baset1_read_abilities(9)genphy_c45_pma_read_ext_abilities(9)genphy_c45_pma_read_abilities(9)genphy_c45_read_status(9)genphy_c45_config_aneg(9)genphy_c45_fast_retrain(9)genphy_c45_plca_get_cfg(9)genphy_c45_plca_set_cfg(9)genphy_c45_plca_get_status(9)genphy_c45_eee_is_active(9)genphy_c45_ethtool_get_eee(9)genphy_c45_ethtool_set_eee(9)oatc14_cable_test_get_result_code(9)genphy_c45_oatc14_cable_test_get_status(9)genphy_c45_oatc14_cable_test_start(9)oatc14_update_sqi_capability(9)genphy_c45_oatc14_get_sqi_max(9)genphy_c45_oatc14_get_sqi(9)
π§ quick reminder bestie: the negative-errno /0/1return thing is the whole personality of this function. don't sleep on it. iykyk π
and that's the page!! brought to you by the <bold>Kernel API Manual</bold>, straight out of ./drivers/net/phy, dated October 2026 β xoxo, genphy_c45_an_config_aneg(9) πβ¨
π¦ 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