xe_exec_que...ueue_primary(9)
π xe_exec_queue_multi_queue_primary(9) β from the Kernel API Manual, bestie π
okay so this one is a tiny little function but it's giving "small but mighty" energy, and honestly? we're obsessed. it lives in the kernel API manual, it's got a nine in parentheses which means it's A Kernel Thing, and it's about π¦ exec queues π¦ β specifically, getting the primary queue out of a multi queue group. let's get into it β¨
πΈ SYNOPSIS πΈ
struct xe_exec_queue * xe_exec_queue_multi_queue_primary (struct xe_exec_queue *q );
like, it takes one struct xe_exec_queue * and hands you back a struct xe_exec_queue *. simple. clean. iconic. periodt π
π ARGUMENTS π
qβ the exec_queue. that's it, that's the whole argument. she's the main character and we're just here for the ride π«Ά
β¨ DESCRIPTION β¨
so here's the vibe check π: if q belongs to a multi queue group, then the primary queue of the group gets returned to you. no cap, that's literally it.
but if q is not part of a multi queue group? then you just get q right back. she returns herself. self-love, we stan ππ
so basically: you either get the primary queue of the group, or you get your own queue back unchanged. either way you're walking away with a struct xe_exec_queue *, and that's a slay π
π₯ SEE ALSO π₯
- the kernel file itself, bestie:
./drivers/gpu/drm/xe/xe_exec_queue.h xe_exec_queue_is_multi_queue(9)β for when you need to know if something's even in a multi queue group πxe_exec_queue_is_multi_queue_primary(9)β checking if a queue is the primary one πxe_exec_queue_is_multi_queue_secondary(9)β and checking if it's the secondary one π¦
ngl, these four functions are a whole friend group and they all reference each other. iykyk π
and that's the page!! written by the crew over at ./drivers/gpu/drm/xe, dated October 2026, and yes the footer still spells it xe_exec_que...ueue_primary(9) β truncated title and all, we love a consistent aesthetic β¨π see u in the next manpage bestie π«Άπ
π¦ 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