STRUCT XE_PREEMPT_FENCE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct xe_preempt_fence(9) πŸ’–

okay bestie, welcome to the Kernel API Manual page for struct xe_preempt_fence(9) β€” the Xe preempt fence. no cap, we are getting into the struct details and it’s lowkey iconic. πŸ¦‹


🌸 NAME 🌸

struct xe_preempt_fence - Xe preempt fence. periodt. πŸ’…

✨ SYNOPSIS ✨

       struct xe_preempt_fence {
           struct dma_fence base;
           struct list_head link;
           struct xe_exec_queue *q;
           struct work_struct preempt_work;
           spinlock_t lock;
           int error;
        };

That’s the whole struct shape, bestie β€” keep it exactly like that. 🫢

πŸŽ€ Members πŸŽ€

  • base β€” dma fence base. πŸ’–
  • link β€” link into list of pending preempt fences. πŸ”—
  • q β€” exec queue for this preempt fence. πŸ‘‘
  • preempt_work β€” work struct which issues preemption. πŸ› οΈ
  • lock β€” dma-fence fence lock. πŸ”’
  • error β€” preempt fence is in error state. πŸ’€

πŸ’« Description πŸ’«

The description here is short and a lil mysterious, ngl: hardware and triggers a callback once the xe_engine is complete. 😭 That’s what it says, bestie β€” keeping it exactly as-is. ✨

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/gpu/drm/xe/xe_preempt_fence_types.h β€” go look, iykyk. 🧚

later, bestie 🫢 β€” this page is from ./drivers/gpu/drm/xe, dated October 2026, and it’s the struct xe_preempt_fence(9) page. πŸ’–πŸŽ€

πŸ“¦ where this page comes from