drm_syncobj_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_syncobj_create(9) β€” the Kernel API Manual glow-up ✨

okay so bestie, welcome to the Kernel API Manual entry for drm_syncobj_create(9) β€” yes the whole page is named after the function, we love a title drop πŸ‘‘


🌸 NAME 🌸

drm_syncobj_create β€” literally creates a brand new syncobj for you, no cap πŸ’«


✨ SYNOPSIS ✨

int drm_syncobj_create (struct drm_syncobj **out_syncobj , uint32_t
       flags , struct dma_fence *fence );

πŸŽ€ ARGUMENTS πŸŽ€

  • out_syncobj β€” the syncobj that gets returned to you 🫢 like, this is where your brand-new baby comes back out.
  • flags β€” the DRM_SYNCOBJ_* flags, periodt.
  • fence β€” if this is non-NULL, the syncobj will represent this fence πŸ”₯ (if it is NULL, it just doesn't, iykyk).

πŸ¦‹ DESCRIPTION πŸ¦‹

This is the first function to create a sync object β€” like the origin story, the main character energy of syncobj creation πŸ‘‘.

After creating it, drivers probably want to make it available to userspace, either through drm_syncobj_get_handle or drm_syncobj_get_fd πŸ’–. So like, you made it, now go introduce it to the people.

Returns 0 on success or a negative error value on failure 😭 bestie if it's negative, something went wrong, fr fr.

ngl the return value check is not optional β€” 0 means slay, negative means go read the error and cope πŸ™ˆ

🌈 SEE ALSO 🌈


and that's the whole page, bestie 🧚 β€” brought to you by the source/version at ./drivers/gpu/drm, dated October 2026. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from