yt8521_config_aneg(9)
π yt8521_config_aneg(9) π
okay so bestie, welcome to the Kernel API Manual β yes, THE Kernel API Manual, we're in the big leagues now π this one's a little function page for yt8521_config_aneg, and ngl she's short but she's mighty. let's get into it β¨
πΈ NAME πΈ
yt8521_config_aneg β change reg space then call yt8521_config_aneg_paged
that's the whole gig, that's the assignment, she swaps the register space and then hands things off to yt8521_config_aneg_paged. queen behavior, no notes π
β¨ SYNOPSIS β¨
int yt8521_config_aneg (struct phy_device *phydev );
like, the signature. right there. copy it exactly if you're writing code, bestie, don't freestyle it π
π¦ ARGUMENTS π¦
phydevβ a pointer to astruct phy_deviceπ that's it, that's the one (1) argument, and it's a pointer to astruct phy_device. she's simple, she's clean, she's iconic.
π DESCRIPTION π
okay so what does she do, what does she *return*β¦
returns0or negativeerrnocode
and that's genuinely the entire description π no cap. zero means slay, got it, everything's fine β
negative errno code means something went sideways and you should go check your errno, fr fr π
(and remember from the NAME up top: it changes reg space, then calls yt8521_config_aneg_paged β the whole pipeline, iykyk π§)
π SEE ALSO π
bestie. bestie. there are SO many siblings. this function has the biggest family group chat in ./drivers/net/phy/motorcomm.c β here's the whole crew, all of them, in order, no one left out π«Ά
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_aneg_done_paged(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)
fifty-one entries. FIFTY-ONE. she said "my support system is unmatched" and honestly? she's right π π₯
don't forget the actual source file lives at ./drivers/net/phy/motorcomm.c in the Kernel file β that's where all this magic is at, bestie π
mwah, that's the page π«Ά this little baddie comes to you straight from the kernel source tree at ./drivers/net/phy, dated October 2026, and it's filed under Kernel API Manual β go forth and call her responsibly, and remember: 0 is good, negative errno is a vibe check you failed πβ¨π
π¦ 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