genphy_c45_..._get_sqi_max(9)
π genphy_c45_..._get_sqi_max(9) π
okay so bestie, this little icon lives in the Kernel API Manual and it's all about asking a PHY how good its vibes can possibly get. yes we're talking Signal Quality. yes it's as cute as it sounds. let's go π«Ά
β¨ NAME β¨
genphy_c45_oatc14_get_sqi_max β literally just "Get maximum supported SQI or SQI+ level of OATC14 10Base-T1S PHY". that's the whole job. she gets the max. she's a getter. queen behavior π
πΈ SYNOPSIS πΈ
int genphy_c45_oatc14_get_sqi_max (struct phy_device *phydev );
π¦ ARGUMENTS π¦
phydevβ pointer to thephy_devicestructure. that's the PHY device in question, our main character for this function π
π₯ DESCRIPTION π₯
so what does she do. this function returns the maximum supported Signal Quality Indicator (SQI) β or the SQI+ level, if that's the flavor we're in. the way that it just hands you the ceiling of how good your signal quality readout can go. iconic.
one tiny detail that's lowkey important: the SQI capability gets updated on first invocation β but only if it hasn't already been updated. so first call does the little housekeeping, and after that she already knows and doesn't need to redo it. efficient! we stan β¨
β RETURN β
- Maximum SQI/SQI+ level supported π
- Negative
errnoon capability read failure π (yeah, if the capability read flops, you get a negative errno. sad but honest)
π SEE ALSO π
the besties!! the whole group chat!! the kernel file is ./drivers/net/phy/phy-c45.c and here's everyone she hangs out with:
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(9)
like, that's the whole friend group. no cap, go read them too π§
quick reminder bestie: this page is from./drivers/net/phy, dated October 2026, and the page itself isgenphy_c45_..._get_sqi_max(9). 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