sfp_get_module_eeprom(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the struct sfp_bus structure for the sfp module. iconic pointer behavior πŸ’…
  • ee β€” a struct ethtool_eeprom.
  • data β€” buffer to contain the EEPROM data (must be at least ee->len bytes). 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:


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