__ras_eeprom_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– __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 from fri. 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 🌈


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