amdgpu_fence_emit_polling(9)
π amdgpu_fence_emit_polling(9)
okay bestie, welcome to the Kernel API Manual β¨ this one's a little kernel function from the DRM/AMDGPU world and honestly? she's short but she matters. Let's get into it π«Ά
πΈ NAME πΈ
amdgpu_fence_emit_polling β emit a fence on the requeste ring
yes the original really does say "requeste" and honestly? iconic typo behavior. we're keeping the energy. π
β¨ SYNOPSIS β¨
int amdgpu_fence_emit_polling (struct amdgpu_ring *ring , uint32_t *s ,
uint32_t timeout );
like, she takes a ring, a pointer to a sequence number, and a timeout. that's the whole vibe check π₯
π ARGUMENTS π
ringβ the ring the fence is associated with π« like, this is the ring our fence is gonna be besties withsβ resulting sequence number π this is where the result gets written, so it's a pointer, okurrrtimeoutβ the timeout for waiting, measured in usecs β±οΈ yes, microseconds, not seconds. she's precise.
π DESCRIPTION π
So basically: this emits a fence command on the requested ring (all asics). π¦ all of them. every single one. no cap.
Used for polling fence π β that's literally what the manpage says, so that's what we're saying.
Return values, and this part is important bestie:
- returns
0on success π slay - returns
-ENOMEMon failure π and that one's not a slay
π SEE ALSO π
okay so there is a whole friend group here and we are gonna list every single one of them because nobody gets left behind π«Ά
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_fence.cπ amdgpu_fence_write(9)amdgpu_fence_read(9)amdgpu_fence_emit(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_count_emitted(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)
like, that's a whole squad π go read them too, iykyk π
and that's the whole page bestie!! πΈ this lil beauty lives over in ./drivers/gpu/drm/amd/amdgpu, it's dated October 2026, and you just read the Kernel API Manual entry for amdgpu_fence_emit_polling(9) β mwah π go emit some fences responsibly, ily, bye π¦π
π¦ 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