igb_write_nvm_spi(9)
π igb_write_nvm_spi β write to EEPROM using SPI β¨
okay so bestie, welcome to the igb_write_nvm_spi(9) page β that's section 9 of the Kernel API Manual, aka the deep-lore corner of the docs where the kernel devs hang out π§
β¨ SYNOPSIS β¨
s32 igb_write_nvm_spi (struct e1000_hw *hw , u16 offset , u16 words ,
u16 *data );
likeβ¦ look at her. she returns an s32 and takes four args. main character energy fr fr π
π ARGUMENTS π
hwβ pointer to the HW structure π that's your hardware context, the whole vibe she's working withoffsetβ where inside the EEPROM we're writing to, like your little bookmark in the EEPROM πΈwordsβ how many words you're about to write, count 'emdataβ the 16 bit word(s) actually getting written to the EEPROM, the payload, the moment, the icon π¦
π₯ DESCRIPTION π₯
So what does she do? She writes data to the EEPROM at offset, using the SPI interface. Simple, iconic, no notes β¨
β οΈ but bestie listen β if e1000_update_nvm_checksum is not called after this function, the EEPROM will most likely contain an invalid checksum π like literally please don't forget, that's the whole plot twist of this manpage. not me warning you twice π
π SEE ALSO π
First up, the kernel file where the magic lives:
- Kernel file
./drivers/net/ethernet/intel/igb/e1000_nvm.c
and then the whole friend group, the entire group chat, the squad π«Ά:
igb_raise_eec_clk(9)igb_lower_eec_clk(9)igb_shift_out_eec_bits(9)igb_shift_in_eec_bits(9)igb_poll_eerd_eewr_done(9)igb_acquire_nvm(9)igb_standby_nvm(9)e1000_stop_nvm(9)igb_release_nvm(9)igb_ready_nvm_eeprom(9)igb_read_nvm_spi(9)igb_read_nvm_eerd(9)igb_read_part_string(9)igb_read_mac_addr(9)igb_validate_nvm_checksum(9)igb_update_nvm_checksum(9)igb_get_fw_version(9)
(yes igb_update_nvm_checksum(9) is right there in the list β see? told you. consistency queen π)
and that's the page!! source + version lives over in ./drivers/net/ethernet/intel/igb, dated October 2026, so if you're reading this from the futureβ¦ hi, ily, go update your checksum π
π¦ 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