xe_exec_queue_lrc(9)
π
xe_exec_queue_lrc (9) β get that LRC out of your exec queue, bestie
okay so this is a page from the Kernel API Manual, and it's genuinely one of the shorter ones β like, a little snack of a manpage. but don't let the length fool you, there's lore here. π«Ά
β¨ NAME β¨
xe_exec_queue_lrc β Get the LRC from exec queue. that's it, that's the whole job. π
πΈ SYNOPSIS πΈ
struct xe_lrc * xe_exec_queue_lrc (struct xe_exec_queue *q );
like yes bestie the spacing in that signature is a whole vibe, we keep it exactly as-is. π
π¦ ARGUMENTS π¦
qβ The exec queue instance. that's your queue, your girl, the thing you're pulling the LRC out of. π
β DESCRIPTION β
so what does it actually do? it retrieves the primary LRC for the exec queue. simple, iconic, done. π
but here's the part where you gotta pay attention, because this is the classic trap:
this function returns only the first LRC instance, even when multiple parallel LRCs are configured. so if you've got a whole squad of parallel LRCs going? this one's only grabbing the first one. no cap, that's literally all you get. π
and the other big thing β it does not increment the reference count. so the reference can just be forgotten after use. like, no refcount bookkeeping needed, you can just let it go. it's giving "no strings attached" energy, which is honestly kind of refreshing ngl. β¨
π RETURN π
- Pointer to LRC on success π₯
- error on failure π
(no in-between. it either slays or it doesn't.)
π SEE ALSO π
okay this is where the page goes absolutely feral β look at this friend group. this function knows everyone. π§
- Kernel file
./drivers/gpu/drm/xe/xe_exec_queue.c - Execution Queue(9)
- Multi Queue Group(9)
xe_exec_queue_get_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_fini(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, thirty entries. thirty. she's popular, okay? let her have this. πβ¨
and that's the whole page, bestie π cute little sign-off time: this one lives over in ./drivers/gpu/drm/xe, it's dated October 2026, and it's filed under xe_exec_queue_lrc(9). mwah, go forth and grab that primary LRC π«ΆπΈ
π¦ 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