ice_read_sr_word(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ice_read_sr_word(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual page for ice_read_sr_word(9) β€” yes, the (9) is the kernel-section moment, and this whole page is about reading a Shadow RAM word. let’s get into it ✨


✨ NAME ✨

ice_read_sr_word β€” Reads Shadow RAM word 🫢

🌸 SYNOPSIS 🌸

int ice_read_sr_word (struct ice_hw *hw , u16 offset , u16 *data );

πŸŽ€ ARGUMENTS πŸŽ€

  • hw β€” pointer to the HW structure. iconic hardware pointer behavior
  • offset β€” offset of the Shadow RAM word to read (0x000000 - 0x001FFF). that’s the range, bestie
  • data β€” word read from the Shadow RAM. the word ends up here

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this Reads one 16 bit word from the Shadow RAM using ice_read_flat_nvm. that’s the whole assignment. πŸ’…

the NVM lock is acquired and released internally by ice_read_flat_nvm around the FW read, so this function must be called without the lock held. do not show up with your own lock, bestie 😭

🚨 important: call this function without the lock held β€” the NVM lock is acquired and released internally by ice_read_flat_nvm around the FW read. no cap.

⭐ RETURN ⭐

zero on success, or a negative error code on failure. that’s the return situation, periodt. πŸ’–

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/net/ethernet/intel/ice/ice_nvm.c 🧚


xoxo, your Unix bestie πŸ’…βœ¨ β€” source/version: ./drivers/net/ethernet/intel/ice; date: October 2026; page: ice_read_sr_word(9). catch u later 🫢

πŸ“¦ where this page comes from