amdgpu_device_rreg(9)
β¨ NAME β¨
okay so amdgpu_device_rreg(9) β read a memory mapped IO or indirect register. This page is from the Kernel API Manual, and she is lowkey iconic: she reads a register and returns the value, no cap. π
πΈ SYNOPSIS πΈ
uint32_t amdgpu_device_rreg (struct amdgpu_device *adev , uint32_t reg ,
uint32_t acc_flags );
π ARGUMENTS π
adevβ anamdgpu_devicepointer, aka the struct pointer you're handing over. π«Άregβ the register offset, and it's dword aligned. Respect the alignment, bestie. β¨acc_flagsβ access flags which require special behavior. Yes, those flags. They need special behavior. periodt. π
π DESCRIPTION π
It returns the 32 bit value from the offset specified. That's the whole function, and she ate. π₯
π¦ SEE ALSO π¦
Kernel file: ./drivers/gpu/drm/amd/amdgpu/amdgpu_reg_access.c β go peek if you're nosy (affectionate). π
Also peep these sister pages, iykyk:
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_wreg(9)amdgpu_device_indirect_wreg64(9)
Source/version vibe: ./drivers/gpu/drm/amd/amdgpu Β· date: October 2026 Β· page: amdgpu_device_rreg(9). mwah π
π¦ 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