drm_syncobj_fence_get(9)
π NAME π
drm_syncobj_fence_get β bestie, this is the one that gets you a reference to a fence in a sync object β¨
(also hi, you're reading the Kernel API Manual page for it, welcome π«Ά)
πΈ SYNOPSIS πΈ
struct dma_fence * drm_syncobj_fence_get (struct drm_syncobj *syncobj );
π ARGUMENTS π
syncobjβ the sync object. that's it, that's the whole argument. the sync object in question π
β¨ DESCRIPTION β¨
okay so here's the tea β β this function acquires an additional reference to the drm_syncobj.fence contained in obj, but only if it's not NULL. like, no fence? no reference. simple as that πββοΈ
β οΈ not me warning you: it is illegal to call this without already holding a reference. like, fr fr, don't do it. this is not a vibe check you want to fail π
and the good news? No locks required. none. zero. you're free π¦ slay.
π₯ RETURN π₯
either the fence of obj, or NULL if there's none. that's the whole return value, no cap π
π SEE ALSO π
- kernel file
./include/drm/drm_syncobj.h, structdrm_syncobj(9) drm_syncobj_get(9)drm_syncobj_put(9)
go read those too, iykyk πβ¨
mwah π that's a wrap β this page lives in ./include/drm, stamped October 2026, and it's literally titled drm_syncobj_fence_get(9) in case you forgot already π stay iconic, go get that fence reference ππ
π¦ 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