ice_write_one_nvm_block(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ice_write_one_nvm_block(9) πŸ’–

✨ NAME ✨

okay bestie, this page is ice_write_one_nvm_block(9) from the Kernel API Manual β€” and it's literally β€œWrite an NVM block and await completion response.” πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int ice_write_one_nvm_block (struct ice_pf *pf , u16 module , u32 offset , u16 block_size , u8 *block , bool last_cmd , u8 *reset_level , struct netlink_ext_ack *extack );

πŸŽ€ ARGUMENTS πŸŽ€

  • pf β€” the PF data structure
  • module β€” the module to write to
  • offset β€” offset in bytes
  • block_size β€” size of the block to write, up to 4k
  • block β€” pointer to block of data to write
  • last_cmd β€” whether this is the last command
  • reset_level β€” storage for reset level required
  • extack β€” netlink extended ACK structure

🌸 DESCRIPTION 🌸

okay so this function writes a block of data to a flash module, and then awaits for the completion response message from firmware. πŸ’…

Important vibe check: this function assumes the caller has acquired the NVM resource. No cap.

On successful return, reset_level indicates the device reset required to complete the update. Here's the reset-level lore, bestie:

  • 0 β€” ICE_AQC_NVM_POR_FLAG β€” A full power on is required
  • 1 β€” ICE_AQC_NVM_PERST_FLAG β€” A cold PCIe reset is required
  • 2 β€” ICE_AQC_NVM_EMPR_FLAG β€” An EMP reset is required

🌈 RETURN 🌈

zero on success, or a negative error code on failure.

πŸ‘‘ SEE ALSO πŸ‘‘


xoxo, source/version is ./drivers/net/ethernet/intel/ice, dated October 2026, signing off as ice_write_one_nvm_block(9) β€” catch you in the next page πŸ’œ

πŸ“¦ where this page comes from