genphy_c45_r...master_slave(9)
π genphy_c45_read_master_slave β a Kernel API Manual moment
okay so bestie, we are in the Kernel API Manual today and the page is literally called genphy_c45_r...master_slave(9) (yes the title got truncated, she's mysterious like that β¨). anyway. sit down, hydrate, and let's talk about reading master/slave status off a PHY π¦
β¨ NAME β¨
genphy_c45_read_master_slave β read master/slave status π
πΈ SYNOPSIS πΈ
int genphy_c45_read_master_slave (struct phy_device *phydev );
π ARGUMENTS π
phydevβ the targetphy_devicestruct, i.e. the PHY we're snooping on π΅οΈββοΈ this is the main character of the whole function, no cap.
π DESCRIPTION π
So what does she do? She reads the Master/Slave configuration and status from the 10GBASE-T control/status registers β that's MMD 7, Reg 0x0020 and Reg 0x0021. Both of them. She's thorough like that π§
like, that's the whole vibe: go into those two registers and pull out who's the master and who's the slave, plus the status. iconic behavior tbh π
π₯ RETURN π₯
0on success β slay, we love a clean exit β¨- a negative error code on failure β π that's the "something went wrong" case, handle it pls
π SEE ALSO π
bestie there are SO many cousins, okay, she's part of a whole extended family and they all live in the kernel file ./drivers/net/phy/phy-c45.c β here's the entire guest list, not skipping a single one π«Ά
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_config_aneg(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_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)
ngl that's a lot of cross-references β read them all, iykyk π
and that's the page!! π this lil beauty lives in ./drivers/net/phy, she's dated October 2026, and she answers to genphy_c45_r...master_slave(9) β okay bye, go read your registers responsibly ππ¦β¨
π¦ 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