amdgpu_eeprom_xfer(9)
β¨ 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. youru8 *, your little bucket of bytes πbuf_sizeβ the size ofeeprom_buf.u32. please actually get this right or it's gonna be a whole thing πreadβTrueif reading from the EEPROM,falseif 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
- 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