sdma_v3_0_ring_get_rptr(9)
π« 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 π:
sdma_v3_0_init_microcode(9)sdma_v3_0_ring_get_wptr(9)sdma_v3_0_ring_set_wptr(9)sdma_v3_0_ring_emit_ib(9)sdma_v3_0_ring_emit_hdp_flush(9)sdma_v3_0_ring_emit_fence(9)sdma_v3_0_gfx_stop(9)sdma_v3_0_rlc_stop(9)sdma_v3_0_ctx_switch_enable(9)sdma_v3_0_enable(9)sdma_v3_0_gfx_resume(9)sdma_v3_0_rlc_resume(9)sdma_v3_0_start(9)sdma_v3_0_ring_test_ring(9)sdma_v3_0_ring_test_ib(9)sdma_v3_0_vm_copy_pte(9)sdma_v3_0_vm_write_pte(9)sdma_v3_0_vm_set_pte_pde(9)sdma_v3_0_ring_pad_ib(9)sdma_v3_0_ring_emit_pipeline_sync(9)sdma_v3_0_ring_emit_vm_flush(9)sdma_v3_0_emit_copy_buffer(9)sdma_v3_0_emit_fill_buffer(9)
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
- 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