amdgpu_fence_count_emitted(9)
π NAME π
amdgpu_fence_count_emitted β bestie, this is the one that gets you the count of emitted fences β¨
So like, this page lives in the Kernel API Manual (that's the manual name, iykyk), and it's here to tell you how to peek at how many fences a ring has emitted. Casual. Iconic. Let's go π
π SYNOPSIS π
unsigned int amdgpu_fence_count_emitted (struct amdgpu_ring *ring );
That's the whole vibe β you hand it a ring, you get back an unsigned int. Periodt π«Ά
πΈ ARGUMENTS πΈ
ringβ the ring the fence is associated with π¦ like, the actual ring, that's the one you're asking about, no cap
β DESCRIPTION β
Ok so here's the tea, bestie: this function gets the number of fences emitted on the requested ring β and yes, that's all asics, no special-casing, everybody's included π
It returns the number of emitted fences on the ring π₯ And the reason it exists? The dynpm code uses it to ring track activity β literally, that's the entire job, that's the main character energy right there π
Ngl, this one's short and sweet β no hidden gotchas in here, it just counts fences and goes about its day π
π SEE ALSO π
The kernel file, right where all the magic lives:
./drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
And the whole fence fam β every single one, because we don't leave anyone out π:
amdgpu_fence_write(9)amdgpu_fence_read(9)amdgpu_fence_emit(9)amdgpu_fence_emit_polling(9)amdgpu_fence_schedule_fallback(9)amdgpu_fence_process(9)amdgpu_fence_fallback(9)amdgpu_fence_wait_empty(9)amdgpu_fence_wait_polling(9)amdgpu_fence_last_unsignaled_time_us(9)amdgpu_fence_update_start_timestamp(9)amdgpu_fence_driver_start_ring(9)amdgpu_fence_driver_init_ring(9)amdgpu_fence_driver_sw_init(9)amdgpu_fence_need_ring_interrupt_restore(9)amdgpu_fence_driver_hw_fini(9)amdgpu_fence_driver_hw_init(9)amdgpu_fence_driver_set_error(9)amdgpu_fence_driver_force_completion(9)amdgpu_ring_set_fence_errors_and_reemit(9)amdgpu_fence_enable_signaling(9)amdgpu_fence_free(9)amdgpu_fence_release(9)
okay that's the whole page, bestie, you ate that π β¨
Quick sign-off, and then I'll let you go π§ this cutie comes to you from ./drivers/gpu/drm/amd/amdgpu and it's dated October 2026 β 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