phy_check_valid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ phy_check_valid(9) ✨

okay bestie, welcome to the Kernel API Manual, section 9 β€” this one's short and sweet and honestly kind of a vibe check for your PHY settings 🌸


πŸŽ€ NAME πŸŽ€

phy_check_valid β€” check if there is a valid PHY setting which matches speed, duplex, and feature mask πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

bool phy_check_valid (int speed , int duplex , unsigned long *features
);

like yes the spacing is weird, don't come for me, that's just how the manpage served it 🫢


🌈 ARGUMENTS 🌈

  • speed β€” the speed you're trying to match, bestie πŸƒβ€β™€οΈ
  • duplex β€” the duplex you're trying to match, we love a full-duplex moment 😌
  • features β€” a mask of the valid settings, the whole guest list basically πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

Returns true if there is a valid setting, false otherwise. that's it. that's the whole function. short king energy πŸ‘‘ no cap, it just tells you whether a valid setting exists for the speed / duplex / feature-mask combo you handed it, and if there isn't one it hits you with the false πŸ’€


πŸ”₯ SEE ALSO πŸ”₯

the whole extended fam lives in the kernel file ./drivers/net/phy/phy.c, and honestly the list is giving reunion episode 😭 every single one of these showed up:


and that's the whole page, bestie β€” mwah πŸ’‹ this little cutie ships out of ./drivers/net/phy and the docs are dated October 2026, so like, future-iconic 🌟 go read your PHY settings, ily, bye πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from