xe_exec_queue_fini(9)
π xe_exec_queue_fini β bestie's guide to the kernel API manual β¨
ok so this page is xe_exec_queue_fini(9) from the Kernel API Manual, and honestly? it's giving "last one to leave the party turns off the lights" energy. π let's get into it.
πΈ NAME πΈ
xe_exec_queue_fini β Finalize an exec queue. that's it, that's the whole name, and it ate. π
β¨ SYNOPSIS β¨
void xe_exec_queue_fini (struct xe_exec_queue *q );
void return, one pointer arg, no drama. the way that signature is literally so clean. π«Ά
π¦ ARGUMENTS π¦
qβ The exec queue. that's the one you're finalizing, bestie. the main character of this whole page. π
π DESCRIPTION π
okay so here's the tea β β xe_exec_queue_fini finalizes the exec queue by doing three (3) iconic things, and no we are not skipping any of them:
- updating run ticks β±οΈ
- releasing LRC references π
- freeing the queue structure π§Ή
and when does this happen? after the queue has been destroyed and all references have been dropped. not before. all of them. that word is doing so much work in that sentence, ngl, respect it. π
lowkey important: this is the cleanup-adjacent step. it's called after destruction and after every last ref is gone β so don't be out here calling it early, that's not the vibe. π
π₯ SEE ALSO π₯
the friend group is large, no cap. kernel file ./drivers/gpu/drm/xe/xe_exec_queue.c, plus:
- Execution Queue(9)
- Multi Queue Group(9)
xe_exec_queue_get_lrc(9)xe_exec_queue_lrc(9)xe_exec_queue_create(9)xe_exec_queue_create_class(9)xe_exec_queue_create_bind(9)xe_exec_queue_destroy(9)xe_exec_queue_assign_name(9)xe_exec_queue_lookup(9)xe_exec_queue_device_get_max_priority(9)xe_exec_queue_set_property_ioctl(9)xe_exec_queue_create_ioctl(9)xe_exec_queue_get_property_ioctl(9)xe_exec_queue_is_lr(9)xe_exec_queue_is_idle(9)xe_exec_queue_update_run_ticks(9)xe_exec_queue_kill(9)xe_exec_queue_destroy_ioctl(9)xe_exec_queue_last_fence_put(9)xe_exec_queue_last_fence_put_unlocked(9)xe_exec_queue_last_fence_get(9)xe_exec_queue_last_fence_get_for_resume(9)xe_exec_queue_last_fence_set(9)xe_exec_queue_tlb_inval_last_fence_put(9)xe_exec_queue_tlb_inval_last_fence_put_unlocked(9)xe_exec_queue_tlb_inval_last_fence_get(9)xe_exec_queue_tlb_inval_last_fence_set(9)xe_exec_queue_contexts_hwsp_rebase(9)
like I said. huge friend group. go read them, iykyk. ππ
πΈ little sign-off πΈ
this one lives over in ./drivers/gpu/drm/xe and the page is dated October 2026, tied to the xe_exec_queue_fini(9) manual entry. that's the whole page, bestie β go forth and finalize responsibly. π§βπ
π¦ 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