radeon_fence_wait_next(9)
β¨ radeon_fence_wait_next(9) β¨
okay so bestie, welcome to the kernel API manual π we're talking about radeon_fence_wait_next(9) today β yes, that whole name, say it with your chest. it lives in the Linux kernel API docs and it's lowkey iconic in a "sitting quietly in a driver file" kind of way π
πΈ NAME πΈ
radeon_fence_wait_next β wait for the next fence to signal β³β¨
like, literally just sit there and vibe until the next fence on your ring goes off. that's the whole job. no cap.
π¦ SYNOPSIS π¦
int radeon_fence_wait_next (struct radeon_device *rdev , int ring );
there it is, character for character, don't touch it, it's perfect π
π ARGUMENTS π
rdevβ the radeon device pointer π₯οΈ your main character, fr. this is the device you're doing the waiting on.ringβ the ring index the fence is associated with π which ring's fence are we stalking? this number. that's it, that's the vibe check.
π₯ DESCRIPTION π₯
so the way that this works is: you wait for the next fence on the requested ring to signal β and this applies to all asics, every single one, no exceptions, periodt π
it returns 0 if the next fence has passed β
(slay, we love a success). and it returns an error for all other cases π β yeah, everything else is an error, that's the deal.
β οΈ big one, don't skip this: the caller must hold the ring lock. π not optional, not "eh I'll grab it later". hold the lock, bestie. this is not a drill.
π SEE ALSO π
kernel file ahoy π«Ά the good stuff lives here:
./drivers/gpu/drm/radeon/radeon_fence.c
and the whole fence friend group π β these are the siblings, the cousins, the entire group chat:
radeon_fence_write(9)radeon_fence_read(9)radeon_fence_schedule_check(9)radeon_fence_emit(9)radeon_fence_activity(9)radeon_fence_check_lockup(9)radeon_fence_process(9)radeon_fence_seq_signaled(9)radeon_fence_enable_signaling(9)radeon_fence_signaled(9)radeon_fence_any_seq_signaled(9)radeon_fence_wait_seq_timeout(9)radeon_fence_wait_timeout(9)radeon_fence_wait(9)radeon_fence_wait_empty(9)radeon_fence_ref(9)radeon_fence_unref(9)radeon_fence_count_emitted(9)radeon_fence_need_sync(9)radeon_fence_note_sync(9)radeon_fence_driver_start_ring(9)radeon_fence_driver_init_ring(9)radeon_fence_driver_init(9)radeon_fence_driver_fini(9)radeon_fence_driver_force_completion(9)
that's the whole page, you ate it up, no crumbs π
sign-off time π§ this one came out of the Kernel API Manual, source path ./drivers/gpu/drm/radeon, dated October 2026, and it's radeon_fence_wait_next(9) β go forth and wait on fences responsibly, bestie πβ¨
π¦ 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