__ras_eeprom_read(9)
π __ras_eeprom_read(9) β the Kernel API Manual glow-up β¨
okay so bestie, we're in the Kernel API Manual today and the vibe is reading indexed records out of an EEPROM β yes, that EEPROM, the little persistent-storage icon of the GPU world π. This one's called __ras_eeprom_read, and she's giving "quiet little helper that does exactly one job and does it slay". Let's get into it π
πΈ SYNOPSIS πΈ
int __ras_eeprom_read (struct ras_eeprom_control *control , u8 *buf ,
const u32 fri , const u32 num );
like, four arguments, one int return, zero drama. periodt π₯
π¦ ARGUMENTS π¦
controlβ pointer to the control structure π. she's the main character, she holds the state.bufβ pointer to the buffer we're reading into π«Ά. yes, into. the data goes here. that's her whole purpose.friβ first record index β¨. this is where the reading starts, and ngl it's an absolute index, not some relative offset situation. lock that in your brain, bestie.numβ number of records to read πΈ. how many we're grabbing, starting fromfri. simple as.
π§ DESCRIPTION π§
The caller must hold the table mutex in control β like, this is not optional, it's not a suggestion, it's the whole rule π. no mutex, no service. take care of that first, then call her.
Returns 0 on success β¨, and -errno otherwise π. that's it. that's the contract. iykyk.
β οΈ fr fr: go hold that table mutex in control before you call this. don't be the person who skips it. we all know that person. don't be them π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/amd/ras/core/eeprom.cπ __ras_eeprom_write(9)β her sister, the writer, iconic in her own right πras_eeprom_append(9)β appending things, as one does β__verify_ras_table_checksum(9)β the checksum vibe check, honestly kind of the most important one π§
kisses bestie π this page lives at ./drivers/gpu/drm/amd/ras/core, it's part of the Kernel API Manual, and it was dated October 2026 β go forth and read your EEPROM records with confidence, you've got this π
π
π¦ 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