STRUCT XE_HW_FENCE(9)
π struct xe_hw_fence(9) π
ok so bestie, welcome to the manual page for struct xe_hw_fence β aka the hardware fence β straight out of the Linux Kernel API Manual, no cap. this is a kernel API page, so grab a lil snack and let's get into it π
β¨ SYNOPSIS β¨
like, here's the whole entire struct, character for character, because you KNOW we don't mess with the code:
struct xe_hw_fence {
struct dma_fence dma;
struct xe_device *xe;
char name[MAX_FENCE_NAME_LEN];
struct iosys_map seqno_map;
struct list_head irq_link;
};
that's the whole vibe. five members. iconic. π
πΈ MEMBERS πΈ
dmaβ the base dma fence for a hardware fence context. it's giving "foundation of the whole operation" energy, honestly.xeβ the Xe device, and it's here for the hw fence driver name. yeah. that's its whole job. πnameβ the name of the hardware fence context. so it can introduce itself at parties, lowkey.seqno_mapβ an I/O map forseqno. mapping queen πirq_linkβ the link instruct xe_hw_fence_irq.pending. it's literally in the pending list, and that's the whole story bestie.
π¦ DESCRIPTION π¦
ok so here's the actual tea π« β this struct is used to indicate that a xe_sched_job is complete, and it does that via a seqno written to memory. that's it, that's the function. signals on error or seqno past. periodt. β¨
ngl this part is short but it's important β signals on error or seqno past means the fence wakes up in either of those cases, and that's as much as the page tells us so we're not gonna invent anything else π
π§ SEE ALSO π§
- the kernel file
./drivers/gpu/drm/xe/xe_hw_fence_types.h struct xe_hw_fence_irq(9)struct xe_hw_fence_ctx(9)
go read those next bestie, the lore is deep π
and that's a wrap!! this lil gem comes from ./drivers/gpu/drm/xe, dated October 2026, and it lives in the Kernel API Manual as struct xe_hw_fence(9). mwah π slay, go write some fences ππ
π¦ 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