xe_preempt_fence_link(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 🧚


ngl bestie, if you're holding a raw struct list_head * and you don't convert it back with link_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