STRUCT DRM_SYNCOBJ(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct drm_syncobj(9) β€” Kernel API Manual πŸ’…

okay bestie, welcome to the Kernel API Manual page for struct drm_syncobj β€” it’s giving sync-object realness and we’re gonna get through it together. 🫢

πŸ¦‹ NAME πŸ¦‹

struct drm_syncobj β€” a sync object. periodt. ✨

✨ SYNOPSIS ✨

no cap, here’s the exact shape of the struct, bestie:

       struct drm_syncobj {
           struct kref refcount;
           struct dma_fence *fence;
           struct list_head cb_list;
           struct list_head ev_fd_list;
           spinlock_t lock;
           struct file *file;
        };

🫢 Members 🫢

  • refcount β€” reference count of this object. πŸ’–
  • fence β€” NULL or a pointer to the fence bound to this object. 🚨 this field should not be used directly β€” use drm_syncobj_fence_get and drm_syncobj_replace_fence instead. πŸ’…
  • cb_list β€” list of callbacks to call when the fence gets replaced. πŸ”₯
  • ev_fd_list β€” list of registered eventfd. 🌸
  • lock β€” protects cb_list and ev_fd_list, and write-locks fence. πŸ‘‘
  • file β€” a file backing for this syncobj. πŸŽ€

🌸 Description 🌸

This structure defines a generic sync object which wraps a dma_fence. that’s the whole vibe, and honestly? iconic. ✨

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./include/drm/drm_syncobj.h β€” plus drm_syncobj_get(9), drm_syncobj_put(9), and drm_syncobj_fence_get(9). go read those too, iykyk. 🫢


okay bye bestie β€” this page came from source ./include/drm, dated October 2026, and it’s the struct drm_syncobj(9) manual. mwah πŸ’‹πŸŒˆ

πŸ“¦ where this page comes from