sdma_v3_0_ring_get_rptr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« sdma_v3_0_ring_get_rptr πŸ’«

okay so bestie, welcome to the Kernel API Manual β€” yes, the kernel API manual, we're doing this, we're learning about AMDGPU's SDMA v3.0 ring read pointer and honestly? iconic. grab a strawberry drink πŸ“ and let's go.


✨ NAME ✨

sdma_v3_0_ring_get_rptr β€” get the current read pointer πŸ’…

like, literally it fetches the rptr. that's the whole job. and it slays at it.


πŸ¦‹ SYNOPSIS πŸ¦‹

uint64_t sdma_v3_0_ring_get_rptr (struct amdgpu_ring *ring );

yup, that's the signature, and no we're not editing it, it's perfect as-is 🫢


🌸 ARGUMENTS 🌸

  • ring β€” amdgpu ring pointer. that's the one and only thing you gotta hand over. a pointer. to a ring. an amdgpu ring, specifically. no cap. πŸŽ€

πŸ‘‘ DESCRIPTION πŸ‘‘

Get the current rptr from the hardware (VI+). that's it, that's the vibe. it reaches into the hardware, grabs the current read pointer, and hands you back a uint64_t like the main character it is. VI+ only, iykyk. πŸ”₯


🧚 SEE ALSO 🧚

the source lives right here in the kernel file:

./drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c

and here's the whole friend group β€” every single one of them, no skipping, we don't do that here πŸ’–:


ngl, if you're poking around here you probably want sdma_v3_0_ring_get_wptr(9) too β€” wptr and rptr are literally besties, you can't know one without the other πŸ’€

πŸŽ€ okay that's the whole page!! source path ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and this was sdma_v3_0_ring_get_rptr(9) signing off. stay hydrated, read your pointers, periodt. βœ¨πŸ’œπŸ¦‹

πŸ“¦ where this page comes from