phy_interface_num_ports(9)
π phy_interface_num_ports(9) π
okay so welcome to the Kernel API Manual, bestie β today's main character is phy_interface_num_ports(9), and she is here to answer one very specific question.
π NAME π
phy_interface_num_ports β returns the number of links that can be carried by a given MAC-PHY physical link. If that number is unknown, it returns 0; otherwise it returns the number of links. periodt.
β¨ SYNOPSIS β¨
int phy_interface_num_ports (phy_interface_t interface );
πΈ ARGUMENTS πΈ
interfaceβ the interface mode we wanna use to get the number of ports. that's the whole vibe check for this argument, no cap.
π SEE ALSO π
Kernel file: ./drivers/net/phy/phy-core.c β and here's the whole bestie squad:
phy_speed_to_str(9)phy_duplex_to_str(9)phy_rate_matching_to_str(9)phy_fix_phy_mode_for_mac_delays(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)
π«Ά cute little sign-off: source/version ./drivers/net/phy, dated October 2026. mwah, go forth and count those links π
β¨
π¦ 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