phy_caps_lo...linkmode_rev(9)
πΈ NAME πΈ
okay so welcome to the phy_caps_lo...linkmode_rev(9) page in the Kernel API Manual, bestie. This one is all about phy_caps_lookup_by_linkmode_rev β the function whose whole job is to look up the slowest matching link_capabilities. That's it. That's the assignment. iconic π
β¨
β¨ SYNOPSIS β¨
const struct link_capabilities * phy_caps_lookup_by_linkmode_rev (const
unsigned long *linkmodes , bool fdx_only );
π ARGUMENTS π
linkmodesβ the linkmodes to match against. matching energy only, no cap πfdx_onlyβ full duplex match only when set. so when it's set, bestie, it's full-duplex-only hours π¦
π₯ RETURN π₯
It returns the lowest-speed link_capabilities that intersects the given linkmodes. When set, fdx_only will ignore half-duplex matches. And if there's no match? NULL is returned. no match, no vibes, just NULL ππ
π SEE ALSO π
Kernel file ./drivers/net/phy/phy_caps.c β and the whole bestie crew is right here:
phy_caps_init(9)phy_caps_speeds(9)phy_caps_lookup_by_linkmode(9)phy_caps_lookup(9)phy_caps_linkmode_max_speed(9)phy_caps_valid(9)phy_caps_linkmodes(9)phy_caps_from_interface(9)phy_caps_medium_get_supported(9)phy_caps_mediums_from_linkmodes(9)
okay that's the page, bestie π«Ά source/version vibes are ./drivers/net/phy, dated October 2026, and yes β the manual name is phy_caps_lo...linkmode_rev(9). slay, go read some kernel code πβ¨
π¦ 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