phy_caps_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… phy_caps_init(9)

okay so bestie, welcome to the phy_caps_init(9) page β€” that's the kernel API manual entry, and yes we're reading kernel docs on purpose, we're that girl πŸ’–


✨ NAME ✨

phy_caps_init β€” the little function that initializes the link_caps array straight from the link_mode_params, no cap 🫢


🌸 SYNOPSIS 🌸

int phy_caps_init (void );

πŸŽ€ ARGUMENTS πŸŽ€

  • void β€” literally no arguments. she takes nothing, she gives everything πŸ’…

⭐ RETURN ⭐

  • 0 β€” phy caps init was successful, slay ✨
  • -EINVAL β€” we found an unexpected linkmode setting that requires a LINK_CAPS update. so like, not a code bug in your head, it's a "hey someone needs to go update the table" situation 😭

πŸ¦‹ SEE ALSO πŸ¦‹

kernel file ./drivers/net/phy/phy_caps.c β€” the main character's home 🏠, plus her whole friend group:


ngl this one's short and sweet β€” init the array, return 0, and if a linkmode shows up that the LINK_CAPS table doesn't know about, you get -EINVAL and somebody has to go add it. periodt πŸ’€

okay bye bestie, this page lives in ./drivers/net/phy, dated October 2026, and it's iconic for it πŸŒˆπŸ’œ

πŸ“¦ where this page comes from