phy_caps_init(9)
π 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 aLINK_CAPSupdate. 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:
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_from_interface(9)phy_caps_medium_get_supported(9)phy_caps_mediums_from_linkmodes(9)
ngl this one's short and sweet β init the array, return0, and if a linkmode shows up that theLINK_CAPStable doesn't know about, you get-EINVALand 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
- 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