phy_duplex_to_str(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… phy_duplex_to_str(9) β€” the Kernel API Manual glow-up πŸ¦‹

okay so picture this: you're deep in the kernel, phy_duplex_to_str is literally right there in the Kernel API Manual, and she does exactly one thing but she does it flawlessly. no cap. ✨


🌸 NAME 🌸

phy_duplex_to_str β€” returns a string describing the duplex πŸŽ€

like… that's her whole job. she's the friend who translates the vibe of a duplex setting into actual words for you. iconic behavior fr.


⭐ SYNOPSIS ⭐

const char * phy_duplex_to_str (unsigned int duplex );

the way that return type is const char *… she hands you a string and she is not letting you touch it. read-only queen πŸ‘‘πŸ’œ


🫢 ARGUMENTS 🫢

  • duplex β€” the duplex setting you want described, bestie. that's it. that's the whole parameter. you hand her the setting, she tells you what it is in string form. slay πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

okay this is the part where she name-drops her entire friend group and honestly? every single one of them is a baddie. no skips, we're listing all 27 because that's what the page says and i'm not about to do any of them dirty πŸ’€

first up, the source of truth:

  • Kernel file ./drivers/net/phy/phy-core.c

and now the crew, in order, exactly as they appear:

  1. phy_speed_to_str(9)
  2. phy_rate_matching_to_str(9)
  3. phy_fix_phy_mode_for_mac_delays(9)
  4. phy_interface_num_ports(9)
  5. phy_set_max_speed(9)
  6. of_set_phy_timing_role(9)
  7. phy_resolve_aneg_pause(9)
  8. phy_resolve_aneg_linkmode(9)
  9. phy_check_downshift(9)
  10. __phy_read_mmd(9)
  11. phy_read_mmd(9)
  12. __phy_write_mmd(9)
  13. phy_write_mmd(9)
  14. phy_modify_changed(9)
  15. __phy_modify(9)
  16. phy_modify(9)
  17. __phy_modify_mmd_changed(9)
  18. phy_modify_mmd_changed(9)
  19. __phy_modify_mmd(9)
  20. phy_modify_mmd(9)
  21. phy_save_page(9)
  22. phy_select_page(9)
  23. phy_restore_page(9)
  24. phy_read_paged(9)
  25. phy_write_paged(9)
  26. phy_modify_paged_changed(9)
  27. phy_modify_paged(9)

27 links. twenty. seven. she said "i have a community" and she meant it πŸ’–βœ¨

ngl bestie, if you're hunting for a function that actually does more than turn a duplex into a string… this is your moment, the whole list is right above. go click something. iykyk πŸ¦‹

🧚 sign-off 🧚

so yeah β€” that's phy_duplex_to_str(9), living in ./drivers/net/phy, dated October 2026, doing her little string-returning thing with full main character energy 🌈⭐

go forth, describe those duplexes, and remember: it's giving helper function, and helper functions are the backbone of the kernel πŸ’œπŸŽ€πŸ«Ά

πŸ“¦ where this page comes from