xe_preempt_fence_link(9)
π xe_preempt_fence_link π
okay so this is a page from the Kernel API Manual, section 9, and it's genuinely such a tiny little function but she's important, so let's get into it π
β¨ NAME β¨
xe_preempt_fence_link β returns a link that you use to keep unarmed preempt fences on a list π¦
πΈ SYNOPSIS πΈ
struct list_head * xe_preempt_fence_link (struct xe_preempt_fence
*pfence );
π«Ά ARGUMENTS π«Ά
pfenceβ pointer to the preempt fence, bestie. that's it, that's the whole vibe check β¨
π DESCRIPTION π
so the link? it's embedded right there in the struct xe_preempt_fence. like, it lives inside it, no cap π
when you wanna get back to the preempt fence, you use link_to_preempt_fence to convert back. that's the whole trick, iykyk π₯
π RETURN π
it gives you back a pointer to an embedded struct list_head, periodt π
π§ SEE ALSO π§
- Kernel file
./drivers/gpu/drm/xe/xe_preempt_fence.h to_preempt_fence_from_link(9)
ngl bestie, if you're holding a rawstruct list_head *and you don't convert it back withlink_to_preempt_fence, you're lowkey just lost in the sauce π use the helper, she exists for a reason π
mwah π this lil page came out of ./drivers/gpu/drm/xe, dated October 2026 β signed off with love from the Kernel API Manual, go forth and link those unarmed preempt 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