phy_caps_from_interface(9)
π phy_caps_from_interface(9)
okay so bestie, welcome to the Kernel API Manual entry for phy_caps_from_interface β literally the glow-up we all needed. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
phy_caps_from_interface β bestie, it gets the link capa from a given PHY interface. that's it. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
unsigned long phy_caps_from_interface (phy_interface_t interface );
no cap, that's the whole signature. unsigned long in, unsigned long out, main character energy from start to finish π
π ARGUMENTS π
interfaceβ the PHY interface we wanna get the possible Speed/Duplex from. like, hand her an interface and she'll tell you what speeds and duplex modes are even achievable on it π
β RETURN β
it returns a bitmask of LINK_CAPA_xxx values β yep, a whole little mask of caps β that can actually be achieved with the interface you provided. it's giving "here's what's possible for you, queen" π₯
π§ SEE ALSO π§
this is the friend group, iykyk β they all live in the kernel file ./drivers/net/phy/phy_caps.c:
phy_caps_init(9)phy_caps_speeds(9)phy_caps_lookup_by_linkmode(9)phy_caps_lookup_by_linkmode_rev(9)phy_caps_lookup(9)phy_caps_linkmode_max_speed(9)phy_caps_valid(9)phy_caps_linkmodes(9)phy_caps_medium_get_supported(9)phy_caps_mediums_from_linkmodes(9)
go read them, they ate π β¨
ok that's the whole page bestie, no filler, no notes left behind π«Ά
and that's a wrap! π this icon of a manpage lives in ./drivers/net/phy and it's dated October 2026 β so yeah, she's from the future and still slaying. mwah ππ
π¦ 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