sfp_get_module_eeprom(9)
π sfp_get_module_eeprom(9) π
okay bestie, welcome to the Kernel API Manual entry for sfp_get_module_eeprom(9) β yes, the SFP module EEPROM reader herself. Pull up a chair, hydrate, and let's get into it π«Ά
πΈ NAME πΈ
sfp_get_module_eeprom β Read the SFP module EEPROM. That's the whole vibe. No cap β¨
π SYNOPSIS π
int sfp_get_module_eeprom (struct sfp_bus *bus , struct ethtool_eeprom *ee , u8 *data );
π¦ ARGUMENTS π¦
okay so here's what you're handing over:
busβ a pointer to thestruct sfp_busstructure for the sfp module. iconic pointer behavior πeeβ astruct ethtool_eeprom.dataβ buffer to contain the EEPROM data (must be at leastee->lenbytes). do not skimp on the buffer, bestie π
π DESCRIPTION π
Read the EEPROM as specified by the supplied ee. See the documentation for struct ethtool_eeprom for the region to be read β that's where the details live, iykyk.
Returns 0 on success or a negative errno number. Short, sweet, and very much giving βcheck the return valueβ energy π
π SEE ALSO π
the whole friend group, fr fr:
- Kernel file
./drivers/net/phy/sfp-bus.cstructsfp_bus(9) sfp_select_interface(9)sfp_bus_put(9)sfp_get_module_info(9)sfp_get_module_eeprom_by_page(9)sfp_upstream_start(9)sfp_upstream_stop(9)sfp_upstream_set_signal_rate(9)sfp_bus_find_fwnode(9)sfp_bus_add_upstream(9)sfp_bus_del_upstream(9)sfp_get_name(9)
Byeee π«Ά this page's source/version line is ./drivers/net/phy, it's dated October 2026, and yes, it's still the sfp_get_module_eeprom(9) page. Mwah πβ¨
π¦ 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