STRUCT XE_PREEMPT_FENCE(9)
π 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
- 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