sfp_get_module_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ sfp_get_module_info(9) ✨

okay bestie, so this one is from the Kernel API Manual, section 9, and it's literally the little function that tells you what kind of SFP module you're dealing with πŸ’… she's short, she's sweet, she's essential.


πŸŽ€ NAME πŸŽ€

sfp_get_module_info β€” get the ethtool_modinfo for a SFP module πŸ¦‹


🌸 SYNOPSIS 🌸

int sfp_get_module_info (struct sfp_bus *bus , struct ethtool_modinfo
*modinfo );

πŸ’– ARGUMENTS πŸ’–

  • bus β€” a pointer to the struct sfp_bus structure for the sfp module πŸ‘‘ like, this is the bus you're asking about, bestie
  • modinfo β€” a struct ethtool_modinfo πŸŽ€ this is the lil container that's gonna get filled in

✨ DESCRIPTION ✨

So what she does: she fills in the type and eeprom_len parameters inside modinfo for a module sitting on the sfp bus you specified with bus 🫢

Returns 0 on success or a negative errno number, no cap 😭 so like, always check the return value, okay?


🌈 SEE ALSO 🌈


go read the whole squad, they all hang out in ./drivers/net/phy together πŸ’€

and that's the whole page, bestie 🧚 she lives in ./drivers/net/phy, dropped October 2026, and the manual name is sfp_get_module_info(9) in case you forgot already πŸ’œ mwah, slay, go read some kernel source ✨

πŸ“¦ where this page comes from