ixgbe_write_one_nvm_block(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ixgbe_write_one_nvm_block(9) πŸ’…

okay bestie, this one is straight out of the Kernel API Manual, and it’s giving β€œfirmware update main character energy” fr fr. We’re writing one NVM block and then waiting for the completion response, so let’s get into it 🫢✨


🌸 NAME 🌸

ixgbe_write_one_nvm_block β€” write an NVM block and await completion response πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

int ixgbe_write_one_nvm_block (struct ixgbe_adapter *adapter , u16
       module , u32 offset , u16 block_size , u8 *block , bool last_cmd ,
       struct netlink_ext_ack *extack );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • adapter β€” the PF data structure, aka the main character here πŸ‘‘
  • module β€” the module to write to, no cap
  • offset β€” offset in bytes, literally where the data goes
  • block_size β€” size of the block to write, up to 4k πŸ’…
  • block β€” pointer to block of data to write, the actual payload bestie
  • last_cmd β€” whether this is the last command, iykyk
  • extack β€” netlink extended ACK structure, fancy ✨

🌈 DESCRIPTION 🌈

Write a block of data to a flash module, and await for the completion response message from firmware. That’s the whole vibe: send the block, then wait for firmware to respond πŸ”₯

🚨 Bestie, heads up: this function assumes the caller has acquired the NVM resource. Like, that’s not optional β€” it’s a whole assumption in the function.

On successful return, reset level indicates the device reset required to complete the update. So the reset level is telling you what kind of reset the device needs to finish the update:

  • 0 β€” IXGBE_ACI_NVM_POR_FLAG β€” a full power on is required
  • 1 β€” IXGBE_ACI_NVM_PERST_FLAG β€” a cold PCIe reset is required
  • 2 β€” IXGBE_ACI_NVM_EMPR_FLAG β€” an EMP reset is required

⭐ RETURN ⭐

0 on success, or a negative error code on failure. Periodt πŸ’€βœ¨


πŸ’œ SEE ALSO πŸ’œ


okay that’s the whole page, bestie πŸŽ€ cute sign-off time: source/version ./drivers/net/ethernet/intel/i..., dated October 2026, page name ixgbe_write_one_nvm_block(9). mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from