phylink_interface_max_speed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

ok so phylink_interface_max_speed β€” it gets you the maximum speed of a phy interface, bestie. that's the whole vibe. this is a page from the Kernel API Manual, and honestly? iconic of it.


✨ SYNOPSIS ✨

int phylink_interface_max_speed (phy_interface_t interface );

like literally one function, one argument, we love a minimal queen πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • interface β€” the phy interface mode, and it's defined by typedef phy_interface_t. that's it. that's the whole input. she's low maintenance πŸ’…

🌸 DESCRIPTION 🌸

okay so the whole point of this one: it determines the maximum speed of a phy interface. simple. elegant. main character energy.

and why do we care? because this is intended to help determine the correct speed to pass to the MAC when the phy is performing rate matching. that's the actual use case β€” rate matching, when the phy is doing the matching. so you don't have to guess, you just call the function and it tells you the max speed, no cap πŸ™Œ


πŸ‘‘ RETURN πŸ‘‘

it returns the maximum speed of interface. that's the tea. that's the answer. periodt ✨


πŸ’– SEE ALSO πŸ’–

okay this list is a whole squad, buckle up bestie β€” the kernel file ./drivers/net/phy/phylink.c plus struct phylink(9), and then the entire friend group:

like, that's a full roster. whole friend group showed up to the function's birthday party πŸŽ‰πŸ’œ


anyway that's the page!! came from the source tree at ./drivers/net/phy, dated October 2026, and this whole thing is phylink_interface_max_speed(9) β€” go read the other ones too, iykyk 🫢✨

πŸ“¦ where this page comes from