trms1040_read_all(9)
β¨ trms1040_read_all(9) β the kernel API manual, bestie edition β¨
Okay so real talk, this one is from the Kernel API Manual, section 9, and it's literally the cutest little eeprom-reading function. Let's get into it π
πΈ NAME πΈ
trms1040_read_all β read all bytes from the eeprom
No cap, that's the whole vibe. It reads. All of them. π«Ά
π SYNOPSIS π
void trms1040_read_all (struct NvRamType *eeprom , unsigned long io_port
);
π ARGUMENTS π
eepromβ where to store the data. That's the destination, bestie, your little data home. πio_portβ the base io port. The starting point. The main character of ports, if you will. β
π¦ DESCRIPTION π¦
Read the 128 bytes from the SEEPROM.
That's it. That's the whole function. It reads 128 bytes, slay, periodt. π
π₯ SEE ALSO π₯
Like, the whole friend group is here, no cap. Kernel file ./drivers/scsi/dc395x.c and literally all these iconic functions:
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)check_eeprom(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)
Okay that's the whole page, bestie. This masterpiece lives in ./drivers/scsi and it's dated October 2026. Go read those 128 bytes, you absolute icon. πβ¨π
π¦ 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