xe_preempt_fence_alloc(9)
β¨ xe_preempt_fence_alloc(9) β¨
okay so, bestie, welcome to the Kernel API Manual β this page is xe_preempt_fence_alloc(9), and it's giving βtiny allocator with big responsibilitiesβ energy π
πΈ NAME πΈ
xe_preempt_fence_alloc β allocate a preempt fence with minimal initialization. That's the whole assignment: make the fence, keep the setup tiny π
π¦ SYNOPSIS π¦
the signature is literally this, no cap:
struct xe_preempt_fence * xe_preempt_fence_alloc (void );
π ARGUMENTS π
voidβ no arguments. not a single one. the void ate and left no crumbs π«Ά
π DESCRIPTION π
So this one allocates a preempt fence, and initializes its list head. That's the βminimal initializationβ vibe β it's not doing a whole main-character backstory for you.
β οΈ bestie, this part is important: if thepreempt_fenceyou allocated has been armed withxe_preempt_fence_arm, it must be freed usingdma_fence_put. If it has not been armed, it must be freed usingxe_preempt_fence_free. Do not mix those up, fr fr π
π₯ RETURN π₯
A struct xe_preempt_fence pointer used for calling into xe_preempt_fence_arm or xe_preempt_fence_free. An error pointer on error. periodt π
π SEE ALSO π
- Kernel file β
./drivers/gpu/drm/xe/xe_preempt_fence.c xe_preempt_fence_free(9)xe_preempt_fence_arm(9)xe_preempt_fence_create(9)
mwah π signing off from source/version ./drivers/gpu/drm/xe, dated October 2026 β xe_preempt_fence_alloc(9), out π
π¦ 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