xe_sync_in_fence_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– xe_sync_in_fence_get(9) πŸ’–

okay bestie, welcome to the kernel API manual for xe_sync_in_fence_get β€” the xe_sync_in_fence_get page, live from the Kernel API Manual, and yes we are absolutely getting into it πŸŽ€


✨ NAME ✨

xe_sync_in_fence_get β€” get a fence from syncs, exec queue, and VM πŸ¦‹

✨ SYNOPSIS ✨

struct dma_fence * xe_sync_in_fence_get (struct xe_sync_entry *sync ,
int num_sync , struct xe_exec_queue *q , struct xe_vm *vm );

✨ ARGUMENTS ✨

  • sync β€” the input syncs, aka the whole vibe you're handing in πŸ’…
  • num_sync β€” how many syncs there are, bestie. count them. πŸ”’
  • q β€” the exec queue πŸ‘‘
  • vm β€” the VM 🌸

✨ DESCRIPTION ✨

okay so the whole point: this gets a fence from the syncs, the exec queue, and the VM. that's literally the job.

if the syncs contain in-fences, it creates and returns a composite fence made of all the in-fences plus the last fence. iconic behavior, no cap 🫢

if there are no in-fences, it just returns the last fence on the input exec queue. simple. clean. slay.

⚠️ heads up bestie: the caller must drop the reference to the returned fence. not optional, not vibes-based, actually do it 😭

✨ RETURN ✨

  • a fence on success πŸ’–
  • ERR_PTR(-ENOMEM) on failure πŸ’€

✨ SEE ALSO ✨

check the kernel file ./drivers/gpu/drm/xe/xe_sync.c for xe_sync_entry_wait(9), xe_sync_needs_wait(9), __xe_sync_ufence_get(9), xe_sync_ufence_get(9), xe_sync_ufence_put(9), xe_sync_ufence_get_status(9) 🌈


and that's the page, bestie! this one's from ./drivers/gpu/drm/xe, dated October 2026 β€” go forth and get those fences, you've got main character energy β­πŸ’œ

πŸ“¦ where this page comes from