check_eeprom(9)
π check_eeprom(9) π
okay so this one lives in the Kernel API Manual and honestly bestie, it's a little shy β two arguments, one job, and a whole lot of friends in SEE ALSO. let's get into it π«Ά
β¨ NAME β¨
check_eeprom β literally just get the contents of the eeprom and check 'em π
πΈ SYNOPSIS πΈ
void check_eeprom (struct NvRamType *eeprom , unsigned long io_port );
no cap, that's the whole signature π
π¦ ARGUMENTS π¦
eepromβ astrcuturethat you, the caller, allocated, and that the eeprom data gets read into. yes, it's your memory, your responsibility, main character energy πio_portβ the io port to read from. that's the one, that's the port π
π DESCRIPTION π
So what happens is: it reads seeprom for 128 bytes and drops them into the memory provider in eeprom. π
Then β and this is the important part β it checks the checksum. and if the checksum is not correct?? π it does not panic, it does not cry, it just uses a set of default values instead. iconic behaviour honestly. resilient queen. π
lowkey a vibe check for your eeprom: if the checksum doesn't pass, defaults it is π
π₯ SEE ALSO π₯
the group chat is huge, bestie. all of these hang out in the kernel file ./drivers/scsi/dc395x.c:
set_safe_settings(9)fix_settings(9)eeprom_index_to_delay(9)delay_to_eeprom_index(9)eeprom_override(9)dc395x_queue_command_lck(9)dc395x_handle_interrupt(9)device_alloc(9)adapter_add_device(9)adapter_remove_device(9)adapter_remove_and_free_device(9)adapter_remove_and_free_all_devices(9)dc395x_sdev_init(9)dc395x_sdev_destroy(9)trms1040_wait_30us(9)trms1040_write_cmd(9)trms1040_set_data(9)trms1040_write_all(9)trms1040_get_data(9)trms1040_read_all(9)print_eeprom_settings(9)adapter_print_config(9)adapter_init_params(9)adapter_init_scsi_host(9)adapter_init_chip(9)adapter_init(9)adapter_uninit_chip(9)adapter_uninit(9)dc395x_init_one(9)dc395x_remove_one(9)
like I said. the whole friend group. iykyk π
and that's the page!! this one came from ./drivers/scsi, dated October 2026 β check_eeprom(9) out, mwah πβ¨π
π¦ 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