ice_write_one_nvm_block(9)
π 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 structuremoduleβ the module to write tooffsetβ offset in bytesblock_sizeβ size of the block to write, up to4kblockβ pointer to block of data to writelast_cmdβ whether this is the last commandreset_levelβ storage for reset level requiredextackβ 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 required1βICE_AQC_NVM_PERST_FLAGβ A cold PCIe reset is required2βICE_AQC_NVM_EMPR_FLAGβ An EMP reset is required
π RETURN π
zero on success, or a negative error code on failure.
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/intel/ice/ice_fw_update.c ice_send_package_data(9)ice_check_component_response(9)ice_send_component_table(9)ice_write_nvm_module(9)ice_erase_nvm_module(9)ice_switch_flash_banks(9)ice_flash_component(9)ice_finalize_update(9)ice_op_pci_match_record(9)ice_get_pending_updates(9)ice_cancel_pending_update(9)ice_devlink_flash_update(9)
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
- 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