STRUCT XE_HW_FENCE_CTX(9)
β¨ struct xe_hw_fence_ctx β hardware fence context β¨
Okay bestie, so this is page struct xe_hw_fence_ctx(9) from the Kernel API Manual, and we're about to get so into it π
it's giving "small struct, big responsibilities" and honestly? iconic.
π NAME π
struct xe_hw_fence_ctx β the hardware fence context, aka the lil bookkeeping buddy that keeps your hardware fences in line π¦
πΈ SYNOPSIS πΈ
struct xe_hw_fence_ctx {
struct xe_gt *gt;
struct xe_hw_fence_irq *irq;
u64 dma_fence_ctx;
u32 next_seqno;
char name[MAX_FENCE_NAME_LEN];
};
Like look at her. Five fields. Zero notes. main character energy fr fr π
π Members π
gtβ the GT structure of the hardware fence context. Yeah, that GT. Your girl's home base πirqβ the fence irq handler. This is who gets pinged when interrupt business goes down πdma_fence_ctxβ the dma fence context for the hardware fence. It's au64, it's important, ngl it's kind of the whole point β¨next_seqnoβ the next seqno for the hardware fence. Au32that is literally the next number in line, keeping everything serialized and cute πnameβ name of the hardware fence context, chillin' in achararray of sizeMAX_FENCE_NAME_LEN. Every queen needs a nameplate π
π₯ Description π₯
So the context for a hardware fence β that's the vibe. It has a 1 to 1 relationship with xe_engine (no sharing, no situationships, one engine per context, periodt π«Ά).
It points to a xe_hw_fence_irq, and it maintains serial seqno. That's it, that's the job. Lowkey simple, highkey essential π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_hw_fence_types.h struct xe_hw_fence_irq(9)struct xe_hw_fence(9)
Go read those next bestie, iykyk π
Also quick heads up: the whole struct block above is verbatim, don't go reformatting it, my love β the closing brace has a lil extra space in front of it and we respect her π
Okay that's the page!! This one lives at ./drivers/gpu/drm/xe (the kernel source tree sweetie), dated October 2026, and it's struct xe_hw_fence_ctx(9) both at the top and at the very bottom where the footer chills. Slay, done, mwah ππ§π
π¦ 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