amdgpu_eeprom_xfer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ amdgpu_eeprom_xfer(9) ✨

okay bestie, welcome to the Kernel API Manual entry for amdgpu_eeprom_xfer πŸ’… this is the function that reads from or writes to an I2C EEPROM device β€” like, the tiny lil memory chip situation hanging off your GPU's I2C bus. it's giving "low-level but make it iconic" πŸŽ€


🌸 SYNOPSIS 🌸

int amdgpu_eeprom_xfer (struct i2c_adapter *i2c_adap , u32 eeprom_addr ,
u8 *eeprom_buf , u32 buf_size , bool read );

that's the whole signature, no cap β€” five arguments, one int coming back at you 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • i2c_adap β€” pointer to the I2C adapter to use. like, which I2C bus are we talking to, bestie? this is the one πŸ”₯
  • eeprom_addr β€” the EEPROM address from which to read/write. the exact spot in the chip, u32, very demure ✨
  • eeprom_buf β€” pointer to the data buffer to read into/write from. your u8 *, your little bucket of bytes πŸ“
  • buf_size β€” the size of eeprom_buf. u32. please actually get this right or it's gonna be a whole thing 😭
  • read β€” True if reading from the EEPROM, false if writing. main character boolean right here πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

so what does it actually do? it returns the number of bytes read/written, and -errno on error. that's it, that's the description, periodt πŸ’€

ngl the description section is short and I'm not gonna invent lore about it β€” if it fails you get -errno, if it works you get a byte count. slay 🌈

⭐ SEE ALSO ⭐

  • Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.c β€” go read the source, iykyk πŸ“–

aaaand that's the page, bestie πŸ§šπŸ’œ this one came from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, filed under amdgpu_eeprom_xfer(9) β€” take care of her, she's iconic πŸ’…βœ¨

πŸ“¦ where this page comes from