amdgpu_device_rreg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” an amdgpu_device pointer, 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:


Source/version vibe: ./drivers/gpu/drm/amd/amdgpu Β· date: October 2026 Β· page: amdgpu_device_rreg(9). mwah πŸ’‹

πŸ“¦ where this page comes from