i40e_aq_update_nvm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i40e_aq_update_nvm β€” the kernel API manual, bestie edition ✨

Okay so this one's from the Kernel API Manual, section 9 (that's the kernel-dev section, iykyk), and the star of the show is i40e_aq_update_nvm. Buckle up πŸŽ€


🌸 NAME 🌸

i40e_aq_update_nvm β€” and honestly? The original page just… leaves the description empty after the dash. Nothing. Nada. A little mysterious, a little iconic πŸ‘‘ (the DESCRIPTION section below is where the actual tea is spilled, don't worry).


✨ SYNOPSIS ✨

int i40e_aq_update_nvm (struct i40e_hw *hw , u8 module_pointer , u32
offset , u16 length , void *data , bool last_command , u8
preservation_flags , struct i40e_asq_cmd_details *cmd_details );

That's the whole signature, copied character for character β€” no editing, no vibes-based fixes πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

Eight of them. All of them matter. Let's go πŸ”₯

  • hw β€” pointer to the hw struct. Your main character struct, fr fr 🫢
  • module_pointer β€” module pointer location in words from the NVM beginning. Note the units bestie: words, not bytes, okay? πŸ™ˆ
  • offset β€” byte offset from the module beginning.
  • length β€” length of the section to be written (in bytes from the offset).
  • data β€” command buffer (size [bytes] = length). So like… size it right or it's giving chaos 😭
  • last_command β€” tells if this is the last command in a series. Are we wrapping up or nah πŸ’€
  • preservation_flags β€” Preservation mode flags.
  • cmd_details β€” pointer to command details structure or NULL. NULL is a valid answer here, no cap 🌈

πŸ’œ DESCRIPTION πŸ’œ

Update the NVM using the admin queue commands.

That's it. That's the whole description. Short, sweet, ate and left no crumbs πŸ“ The whole point of this function is to push NVM updates through the admin queue commands β€” that's the vibe check it has to pass ⭐


🧚 SEE ALSO 🧚

First up, the kernel file itself, bestie β€” go read the source, it's literally right there:

./drivers/net/ethernet/intel/i40e/i40e_common.c

And now the friend group. This is a huge squad, every single one of them πŸ’–

That's the whole group chat, no one left on read 🫢


Heads up bestie: the original page doesn't document a return value, error codes, or any caveats β€” so neither do I. Don't invent lore where there isn't any πŸ™ˆ

Okay that's the page!! Big shoutout to the source, ./drivers/net/ethernet/intel/i40e, and this little beauty is dated October 2026 πŸ’– Go update some NVM, you absolute icon πŸŒŸπŸ’…βœ¨

πŸ“¦ where this page comes from