amdgpu_ras_eeprom_append(9)
πΎ amdgpu_ras_eeprom_append(9) β like, the EEPROM RAS table's official record-dropper π
okay bestie, so this is a page from the Kernel API Manual β yes, that is the manual name, I'm not just being dramatic β and it's all about amdgpu_ras_eeprom_append. Sit down, hydrate, and let's get into it π«Ά
β¨ NAME β¨
amdgpu_ras_eeprom_append β append records to the EEPROM RAS table πΈ
Like, the whole gig. That's it. That's the function π
π SYNOPSIS π
int amdgpu_ras_eeprom_append (struct amdgpu_ras_eeprom_control *control
, struct eeprom_table_record *record , const u32 num );
That's the exact signature, no cap β copy it verbatim if you're typing it out, because literally every character matters here π₯
π ARGUMENTS π
controlβ pointer to the control structure. She's the main character, the one holding all the state πrecordβ array of records to append. Plural energy, bestie β it's an array, not a single lil guy β¨numβ number of records in therecordarray. Yes, you have to tell her how many. She's not psychic π
π DESCRIPTION π
So here's the vibe: amdgpu_ras_eeprom_append appends num records to the table, calculates the checksum, and then writes the table back to EEPROM. That's the whole glow-up β append, checksum, write back. Iconic, honestly π
Now, the important bit, so pay attention π¦ β the maximum number of records that can be appended is between 1 and control->ras_max_record_count, regardless of how many records are already stored in the table. Read that again. It's giving "the cap is the cap, bestie" β the existing contents do not move the needle. Periodt. π
And the return values, because we always check those:
- Returns
0on success β or if EEPROM is not supported at all (yes, same value, that's the deal, don't @ me) β - Returns
-errnoon error β classic error-code behaviour, sad but true π
ngl, "returns 0 even when EEPROM isn't supported" is the kind of detail that will absolutely bite you if you skip it. So don't skip it, bestie. π
π§ SEE ALSO π§
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.cβ the source herself, go read her π amdgpu_ras_eeprom_reset_table(9)__amdgpu_ras_eeprom_write(9)__amdgpu_ras_eeprom_read(9)amdgpu_ras_eeprom_read(9)__verify_ras_table_checksum(9)
All of these are part of the same friend group, fr fr β the write-and-read-and-verify squad β
and that's the page, bestie! π this lil masterpiece lives in ./drivers/gpu/drm/amd/amdgpu, it's dated October 2026, and it answers to the name amdgpu_ras_eeprom_append(9) from the Kernel API Manual. slay, go append some records responsibly β¨π
π¦ 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