amdgpu_sync_fence(9)
π amdgpu_sync_fence(9) β the Kernel API Manual page you didn't know you needed
okay so bestie, welcome to the Kernel API Manual entry for amdgpu_sync_fence β¨ this one's short and sweet, and honestly? iconic of it.
π NAME π
amdgpu_sync_fence β remember to sync to this fence π«Ά
like, the whole personality of this function is "hey, don't forget about this fence, bestie." that's it. that's the vibe.
πΈ SYNOPSIS πΈ
int amdgpu_sync_fence (struct amdgpu_sync *sync , struct dma_fence *f ,
gfp_t flags );
it returns an int, and it takes three things. slay. π
π¦ ARGUMENTS π¦
syncβ the sync object you're adding the fence to. this is the home base, the main character of the operation πfβ the fence to sync to. this is the fence in question. the one we're remembering. say hi to it πflagsβ the memory allocation flags to use when allocating the sync entry. lowkey important, don't sleep on these π
β¨ DESCRIPTION β¨
Add the fence to the sync object.
that's it. that's the whole description. the way this function does exactly one (1) thing and is fully unbothered about it? we stan a focused icon π
ngl, the original manpage keeps it very brief here, so there's genuinely nothing more to tell you β the entire documented behaviour is "add the fence to the sync object." no extra lore, no secret bonus behaviour, no cap. π₯
π SEE ALSO π
so here's the kernel file where all the magic lives, fr fr:
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
and the whole friend group β the entire sync squad, one big happy family π:
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_resv(9)amdgpu_sync_kfd(9)amdgpu_sync_peek_fence(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)
π sign-off π
this little gem comes to you from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, straight out of the Kernel API Manual π go read the other amdgpu_sync pages, they're all in the group chat π π§ββοΈ
π¦ 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