yt8521_aneg_done_paged(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ yt8521_aneg_done_paged ✨

okay bestie, so this one lives in section 9 of the Kernel API Manual and it's literally about one thing: figuring out the auto negotiation result of one page. that's it. that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

int yt8521_aneg_done_paged (struct phy_device *phydev , int page );

no cap, that's the whole signature. short and iconic. πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • phydev β€” a pointer to a struct phy_device. you know the drill, it's the phy device we're working on. 🫢
  • page β€” the reg page to operate on, and it's gotta be one of YT8521_RSSR_FIBER_SPACE or YT8521_RSSR_UTP_SPACE. those are your two options, periodt. ✨

πŸ’– DESCRIPTION πŸ’–

so what does it actually return, you ask? it's giving ✨three possibilities✨:

  • 0 β€” no link 😭
  • 1 β€” fiber or utp link πŸ”₯
  • a negative errno code β€” something went wrong πŸ’€

that's the whole function bestie, she's simple like that. lowkey obsessed with how straightforward this one is. 🌸


πŸ‘‘ SEE ALSO πŸ‘‘

everything else in Kernel file ./drivers/net/phy/motorcomm.c, and like... there's a LOT. buckle up:

ytphy_read_ext(9), ytphy_read_ext_with_lock(9), ytphy_write_ext(9), ytphy_write_ext_with_lock(9), ytphy_modify_ext(9), ytphy_modify_ext_with_lock(9), ytphy_get_wol(9), ytphy_set_wol(9), yt8521_read_page(9), yt8521_write_page(9), struct ytphy_cfg_reg_map(9), struct ytphy_ldo_vol_map(9), yt8521_probe(9), ytphy_utp_read_lpa(9), yt8521_adjust_status(9), yt8521_read_status_paged(9), yt8521_read_status(9), yt8521_modify_bmcr_paged(9), yt8521_modify_utp_fiber_bmcr(9), yt8521_soft_reset(9), yt8521_suspend(9), yt8521_resume(9), yt8521_config_init(9), yt8531_link_change_notify(9), yt8521_prepare_fiber_features(9), yt8521_fiber_setup_forced(9), ytphy_check_and_restart_aneg(9), yt8521_fiber_config_aneg(9), ytphy_setup_master_slave(9), ytphy_utp_config_advert(9), ytphy_utp_config_aneg(9), yt8521_config_aneg_paged(9), yt8521_config_aneg(9), yt8521_aneg_done(9), ytphy_utp_read_abilities(9), yt8521_get_features_paged(9), yt8521_get_features(9), yt8821_get_features(9), yt8821_get_rate_matching(9), yt8821_aneg_done(9), yt8821_serdes_init(9), yt8821_utp_init(9), yt8821_auto_sleep_config(9), yt8821_soft_reset(9), yt8821_config_init(9), yt8821_adjust_status(9), yt8821_update_interface(9), yt8821_read_status(9), yt8821_modify_utp_fiber_bmcr(9), yt8821_suspend(9), yt8821_resume(9)

like, go read the whole family if you want the full lore iykyk πŸ“š


and that's a wrap! πŸŽ€ she's brought to you by the fine folks over at ./drivers/net/phy, dated October 2026, and she answers to the very glamorous name yt8521_aneg_done_paged(9). mwah πŸ’‹ slay, bye! πŸ¦‹βœ¨

πŸ“¦ where this page comes from