phy_caps_from_interface(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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