yt8821_config_init(9)
πΈ yt8821_config_init(9) πΈ
okay so bestie, welcome to the Kernel API Manual β this one's a little baby page about a phy init function, and honestly? it's giving "small but mighty" π
β¨ NAME β¨
yt8821_config_init β phy initialization π
(it's the setup moment, the glow-up before the phy actually does anything, iykyk)
π¦ SYNOPSIS π¦
int yt8821_config_init (struct phy_device *phydev );
like, that's the whole signature. copy it exactly, no cap, don't get creative with it π₯
π ARGUMENTS π
phydevβ a pointer to astruct phy_deviceπ«Ά β literally just a pointer to the phy device struct, that's it, that's the whole argument
π RETURN π
returns 0 or a negative errno code
so: 0 = slay, we're good β¨ β negative errno = something went sideways, and the error code will tell you what π
fr fr check that return value. negative errno codes are not a vibe to ignore π
π SEE ALSO π
first up, the kernel file this lives in:
./drivers/net/phy/motorcomm.c
and then the whole bestie entourage of related functions β every single one, in order, no skips π§:
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_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_adjust_status(9)yt8821_update_interface(9)yt8821_read_status(9)yt8821_modify_utp_fiber_bmcr(9)yt8821_suspend(9)yt8821_resume(9)
that's the whole page bestie, you ate it π β¨
oh and one last thing β this one lives in ./drivers/net/phy, and the version stamp is October 2026 π so like, mark your calendar, mwah π«Άπ
π¦ 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