amdgpu_sync_peek_fence(9)
π NAME π
amdgpu_sync_peek_fence β get the next fence that hasnβt signaled yet
okay bestie, welcome to the amdgpu_sync_peek_fence(9) page in the Kernel API Manual. this one is short and sweet: weβre peeking into a sync object for the next fence that isnβt signaled yet. no removing, no drama. β¨
π¦ SYNOPSIS π¦
hereβs the exact signature, copied with love:
struct dma_fence * amdgpu_sync_peek_fence (struct amdgpu_sync *sync ,
struct amdgpu_ring *ring );
it returns a struct dma_fence *, and it takes a struct amdgpu_sync *sync plus a struct amdgpu_ring *ring. π
π ARGUMENTS π
syncβ the sync object. this is the thing weβre looking inside. πringβ optional ring to use for test. yes bestie, itβs optional, so donβt stress. π«Ά
πΈ DESCRIPTION πΈ
it returns the next fence thatβs not signaled yet, and the key part is that it does not remove it from the sync object. itβs a peek, not a grab-and-dip. π
peek responsibly: the fence stays right where it is in the sync object. no yanking. π
π SEE ALSO π
Kernel file:
./drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
the whole sync crew:
amdgpu_sync_create(9)amdgpu_sync_same_dev(9)amdgpu_sync_get_owner(9)amdgpu_sync_keep_later(9)amdgpu_sync_add_later(9)amdgpu_sync_fence(9)amdgpu_sync_resv(9)amdgpu_sync_kfd(9)amdgpu_sync_get_fence(9)amdgpu_sync_clone(9)amdgpu_sync_move(9)amdgpu_sync_push_to_job(9)amdgpu_sync_free(9)amdgpu_sync_init(9)amdgpu_sync_fini(9)
mwah π this page comes from the./drivers/gpu/drm/amd/amdgpusource corner, dated October 2026, and itβs filed asamdgpu_sync_peek_fence(9)in the Kernel API Manual. slay, go peek responsibly. π
π¦ 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