sdma_v5_2_ring_get_rptr(9)
π sdma_v5_2_ring_get_rptr β get the current read pointer π
okay so bestie, this one's from the Kernel API Manual (the sdma_v5_2_ring_get_rptr(9) corner of it), and honestly it's a little baby function that punches way above its weight. let's get into it β¨
πΈ NAME πΈ
sdma_v5_2_ring_get_rptr β literally just get the current read pointer. that's the whole vibe. that's the job. π
π¦ SYNOPSIS π¦
uint64_t sdma_v5_2_ring_get_rptr (struct amdgpu_ring *ring );
like, you hand it a ring, it hands you back a uint64_t. transactional. iconic. π
π ARGUMENTS π
ringβ an amdgpu ring pointer. that's it. that's the whole guest list. π«Ά
π₯ DESCRIPTION π₯
so what it actually does: it gets the current rptr (that's the read pointer, iykyk) from the hardware, and it's specifically the NAVI10+ flavour of that move. no cap, that's the entire description. short queen. π
ngl it's a one-liner of a function, but the read pointer is main character energy in a ring buffer, so don't sleep on it π
β SEE ALSO β
- Kernel file
./drivers/gpu/drm/amd/amdgpu/sdma_v5_2.cβ go read the source bestie, it's all there π sdma_v5_2_ring_get_wptr(9)sdma_v5_2_ring_set_wptr(9)sdma_v5_2_ring_emit_ib(9)sdma_v5_2_ring_emit_mem_sync(9)sdma_v5_2_ring_emit_hdp_flush(9)sdma_v5_2_ring_emit_fence(9)sdma_v5_2_gfx_stop(9)sdma_v5_2_rlc_stop(9)sdma_v5_2_ctx_switch_enable(9)sdma_v5_2_enable(9)sdma_v5_2_gfx_resume_instance(9)sdma_v5_2_gfx_resume(9)sdma_v5_2_rlc_resume(9)sdma_v5_2_load_microcode(9)sdma_v5_2_start(9)sdma_v5_2_ring_test_ring(9)sdma_v5_2_ring_test_ib(9)sdma_v5_2_vm_copy_pte(9)sdma_v5_2_vm_write_pte(9)sdma_v5_2_vm_set_pte_pde(9)sdma_v5_2_ring_pad_ib(9)sdma_v5_2_ring_emit_pipeline_sync(9)sdma_v5_2_ring_emit_vm_flush(9)sdma_v5_2_emit_copy_buffer(9)sdma_v5_2_emit_fill_buffer(9)
like, that's the whole friend group right there β every single one of them, no skips π
so that's the page, bestie!! πΈ this cutie lives in ./drivers/gpu/drm/amd/amdgpu, the manual's dated October 2026, and it's the Kernel API Manual edition β mwah, go get that rptr π
β¨π«Ά
π¦ 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