amdgpu_ras_eeprom_append(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Ύ 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 the record array. 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 0 on success β€” or if EEPROM is not supported at all (yes, same value, that's the deal, don't @ me) βœ…
  • Returns -errno on 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 🧚

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