amdgpu_device_indirect_wreg(9)
β¨ amdgpu_device_indirect_wreg β¨ (kernel API manual, bestie edition)
okay so this is a page from the Kernel API Manual and it's literally about one tiny little function that pokes an indirect register. indirect means you don't write to the thing directly, you go through a middleman, iykyk π
πΈ NAME πΈ
amdgpu_device_indirect_wreg β write an indirect register address π
yes bestie, the short description really is "write an indirect register address", that's what the page says, we're not gonna argue with it, periodt.
π¦ SYNOPSIS π¦
void amdgpu_device_indirect_wreg (struct amdgpu_device *adev , u32
reg_addr , u32 reg_data );
it returns void, so likeβ¦ nothing comes back. it just does the thing. main character energy honestly β¨
π ARGUMENTS π
adevβ amdgpu_device pointer π«Ά that's your device, the whole vibe, the star of the showreg_addrβ indirect register offset π the address, but the indirect kindreg_dataβ indirect register data π the actual data you're writing in there
π SEE ALSO π
the kernel file for this one lives right here:
./drivers/gpu/drm/amd/amdgpu/amdgpu_reg_access.c
and then there's the whole friend group, no cap, all of these cuties:
amdgpu_device_rreg(9)amdgpu_mm_rreg8(9)amdgpu_device_xcc_rreg(9)amdgpu_mm_wreg8(9)amdgpu_device_wreg(9)amdgpu_mm_wreg_mmio_rlc(9)amdgpu_device_xcc_wreg(9)amdgpu_device_indirect_rreg(9)amdgpu_device_indirect_rreg64(9)amdgpu_device_indirect_wreg64(9)
π reminder that this is a kernel API page, so these are kernel functions, not your usual little shell commands. pls do not try to run them in your terminal, bestie, I'm begging π
and that's the whole page!! short and sweet, we love her for that πΈ the source/version line at the bottom said ./drivers/gpu/drm/amd/amdgpu and the date was October 2026, so yeah, that's the whole vibe-check receipt π§π slay β¨
π¦ 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