ice_read_sr_pointer(9)
π ice_read_sr_pointer(9) β like, the Shadow RAM pointer reader bestie
okay so this is a page from the Kernel API Manual (section 9, kernel-land, iykyk) and it's all about ice_read_sr_pointer β Read the value of a Shadow RAM pointer word. yes that's the official NAME, and yes we're keeping it. π
β¨ SYNOPSIS β¨
int ice_read_sr_pointer (struct ice_hw *hw , u16 offset , u32 *pointer
);
that's the whole vibe. three args, returns an int. slay.
π«Ά ARGUMENTS π«Ά
hwβ pointer to the HW structure. your hardware, your main character πoffsetβ the word offset of the Shadow RAM word to read. like, which word bestie. which one.pointerβ pointer value read from Shadow RAM. this is where the answer lands π―
πΈ DESCRIPTION πΈ
So what it does: it reads the given Shadow RAM word, and then converts it into a pointer value specified in bytes. cute, right? π¦
β οΈ heads up though β this function assumes the specified offset is a valid pointer word. it does not check. it just trusts you. lowkey iconic, highkey terrifying π
Here's the little secret about these pointer words: each one specifies whether it's stored in word size or 4KB sector size by using the highest bit. and the reported pointer value comes back in bytes, intended for flat NVM reads. periodt. β¨
π₯ SEE ALSO π₯
- Kernel file
./drivers/net/ethernet/intel/ice/ice_nvm.c ice_aq_read_nvm(9),ice_read_flat_nvm(9),ice_aq_update_nvm(9),ice_aq_erase_nvm(9),ice_read_sr_word(9),ice_acquire_nvm(9),ice_release_nvm(9),ice_get_flash_bank_offset(9),ice_read_flash_module(9),ice_read_nvm_module(9),ice_read_nvm_sr_copy(9),ice_read_netlist_module(9),ice_get_pfa_module_tlv(9),ice_read_pba_string(9),ice_get_nvm_ver_info(9),ice_get_inactive_nvm_ver(9),ice_get_orom_civd_data(9),ice_get_orom_ver_info(9),ice_get_inactive_orom_ver(9),ice_get_netlist_info(9),ice_get_inactive_netlist_ver(9),ice_discover_flash_size(9),ice_read_sr_area_size(9),ice_determine_active_flash_banks(9),ice_get_nvm_css_hdr_len(9),ice_determine_css_hdr_len(9),ice_init_nvm(9),ice_nvm_validate_checksum(9),ice_nvm_write_activate(9),ice_aq_nvm_update_empr(9)
that's a lot of friends. go read them too, bestie, they're all in the same neighborhood π§
okay that's the page!! it lives in ./drivers/net/ethernet/intel/ice, the version/date stamp says October 2026, and the whole thing is filed under ice_read_sr_pointer(9). mwah π bye bestie!! ππ
π¦ 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