phy_fix_phy...r_mac_delays(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 β€” True if the mac adds internal tx delay. So yes, this bool is literally telling you whether that internal tx delay is a thing πŸ’…
  • mac_rxid β€” True if 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/version phy_fix_phy...r_mac_delays(9), date October 2026 β€” mwah, stay hydrated and keep those delays internal πŸ’‹βœ¨
πŸ“¦ where this page comes from