__amdgpu_ras_eeprom_read(9)
π
__amdgpu_ras_eeprom_read(9) β Kernel API Manual, but make it make sense
okay so bestie, this whole page lives in the Kernel API Manual and it's about one little function that reads stuff out of an EEPROM. tiny function, big main character energy. let's get into it π«Ά
β¨ NAME β¨
__amdgpu_ras_eeprom_read β read indexed from EEPROM into buffer
like, the name literally spells it out: you give it an index, it reads from the EEPROM, and the bytes land in your buffer. no cap. π
πΈ SYNOPSIS πΈ
int __amdgpu_ras_eeprom_read (struct amdgpu_ras_eeprom_control *control
, u8 *buf , const u32 fri , const u32 num );
that's the whole vibe right there. four params, one int coming back at you β¨
π ARGUMENTS π
controlβ pointer to control structure ποΈ like, the control center for this whole operationbufβ pointer to buffer to read into π₯ this is where the goods gofriβ first record index, start reading at this index, absolute index π’ literally "first record index" β you start here, and it's an absolute index, not relative, don't get it twistednumβ number of records to read π how many records you're grabbing from that starting point
π¦ DESCRIPTION π¦
okay here's the important part, and it's giving mandatory pre-reading, so listen up π
The caller must hold the table mutex in control.
like, you, the caller, are responsible for holding that table mutex in control before you even think about calling this. not a suggestion. it's the rule. π
and the return? it returns 0 on success, or -errno otherwise. that's it, that's the whole contract π classic kernel behavior fr fr.
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.cπ the actual source, go read it iykyk amdgpu_ras_eeprom_reset_table(9)__amdgpu_ras_eeprom_write(9)β the writing counterpart, we love a duo π«Άamdgpu_ras_eeprom_append(9)amdgpu_ras_eeprom_read(9)β yes bestie, the non-underscore version exists too, iconic__verify_ras_table_checksum(9)
and that's the page!! π big shoutout to the source/version being ./drivers/gpu/drm/amd/amdgpu and the date being October 2026, with the title __amdgpu_ras_eeprom_read(9) on the way out β slay, periodt, go hold that mutex π
β¨
π¦ 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