phy_fix_phy...r_mac_delays(9)
okay bestie, welcome to the Kernel API Manual glow-up for phy_fix_phy...r_mac_delays(9) β yes, the title is dramatic, and she earned it π
β¨
β¨ NAME β¨
phy_fix_phy_mode_for_mac_delays β convenience function for fixing PHY mode based on whether mac adds internal delay. That's the whole vibe: you roll in with an interface mode and the mac's internal-delay receipt, and this function helps sort out the PHY mode π«Ά
π SYNOPSIS π
bestie, here's the exact signature, no edits, no cap:
phy_interface_t phy_fix_phy_mode_for_mac_delays (phy_interface_t interface , bool mac_txid , bool mac_rxid );
π¦ ARGUMENTS π¦
interfaceβ the current interface mode of the port. This is the starting point, the main character of the call πmac_txidβTrueif the mac adds internal tx delay. So yes, this bool is literally telling you whether that internal tx delay is a thing πmac_rxidβTrueif the mac adds internal rx delay. Same energy, but for rx π
πΈ RETURN πΈ
It returns the fixed PHY mode. If the interface can not apply the internal delay, you get PHY_INTERFACE_MODE_NA instead. That's the "not applicable" icon, and honestly she said what she said π
π SEE ALSO π
Kernel file: ./drivers/net/phy/phy-core.c β and the whole bestie lineup is: phy_speed_to_str(9), phy_duplex_to_str(9), phy_rate_matching_to_str(9), phy_interface_num_ports(9), phy_set_max_speed(9), of_set_phy_timing_role(9), phy_resolve_aneg_pause(9), phy_resolve_aneg_linkmode(9), phy_check_downshift(9), __phy_read_mmd(9), phy_read_mmd(9), __phy_write_mmd(9), phy_write_mmd(9), phy_modify_changed(9), __phy_modify(9), phy_modify(9), __phy_modify_mmd_changed(9), phy_modify_mmd_changed(9), __phy_modify_mmd(9), phy_modify_mmd(9), phy_save_page(9), phy_select_page(9), phy_restore_page(9), phy_read_paged(9), phy_write_paged(9), phy_modify_paged_changed(9), phy_modify_paged(9).
sign-off szn: source./drivers/net/phy, title/versionphy_fix_phy...r_mac_delays(9), dateOctober 2026β mwah, stay hydrated and keep those delays internal πβ¨
π¦ 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