genphy_c45_oatc14_get_sqi(9)
π genphy_c45_oatc14_get_sqi β the Kernel API Manual, bestie edition
okay so this is a page from the Kernel API Manual, and we're talking about genphy_c45_oatc14_get_sqi(9). yes the name is a mouthful, no we're not shortening it, it's iconic actually π
β¨ NAME β¨
genphy_c45_oatc14_get_sqi β bestie, this literally gets the Signal Quality Indicator (SQI) from an OATC14 10Base-T1S PHY. that's the whole vibe. π¦
β¨ SYNOPSIS β¨
int genphy_c45_oatc14_get_sqi (struct phy_device *phydev );
β¨ ARGUMENTS β¨
phydevβ pointer to the PHY device structure. that's it, that's the only thing you're handing over π
β¨ DESCRIPTION β¨
so here's the tea, okay? this function reads the SQI+ or SQI value from an OATC14-compatible 10Base-T1S PHY. one of the two, depending on what your hardware can do. π₯
if SQI+ capability is supported, the function returns the extended SQI+ value. otherwise β no SQI+ for you β it returns the basic SQI value. either way you're walking away with a number, slay. β¨
and the SQI capability gets updated on first invocation if it has not already been updated. so like, first call does the little setup moment, and it's handled. main character energy honestly π
β¨ RETURN β¨
- SQI/SQI+ value on success π
- Negative errno on read failure π β yeah, if the read flops, you get a negative errno back. that's the vibe check failing, ngl.
β¨ SEE ALSO β¨
fr fr, go read these next, they're the whole friend group. Kernel file ./drivers/net/phy/phy-c45.c holds a bunch of them:
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_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)
anyway that's the page π«Ά it lives under ./drivers/net/phy, it's dated October 2026, and it's giving Kernel API Manual. periodt. π
πΈ
π¦ 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