STRUCT IVPU_CMDQ(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct ivpu_cmdq(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual entry for struct ivpu_cmdq β€” and yes, we're doing this, because this little struct is genuinely iconic and it deserves your full attention ✨


🌸 NAME 🌸

struct ivpu_cmdq β€” bestie, this is the command queue for submitting jobs to the VPU. It keeps track of the queue memory, the preemption buffers, and all the metadata you need for job management. no cap, that's literally its whole job 🫢


πŸŽ€ SYNOPSIS πŸŽ€

struct ivpu_cmdq {
    struct vpu_job_queue *jobq;
    struct ivpu_bo *primary_preempt_buf;
    struct ivpu_bo *secondary_preempt_buf;
    struct ivpu_bo *mem;
    u32 entry_count;
    u32 id;
    u32 db_id;
    u8 priority;
    bool is_legacy;
 };

πŸ¦‹ Members πŸ¦‹

  • jobq β€” a pointer to the job queue memory that's shared with the device. shared with the device, bestie, we're literally in this together πŸ’…
  • primary_preempt_buf β€” the primary preemption buffer for this queue. it's optional</> πŸ’œ
  • secondary_preempt_buf β€” the secondary preemption buffer for this queue. also optional</>, yes you get two πŸ™ˆ
  • mem β€” the memory allocated for the job queue, shared with the device. (yes, again with the sharing, it's giving main character energy 🌈)
  • entry_count β€” number of job entries in the queue. u32, counting things, slay ✨
  • id β€” the unique command queue ID. unique! one of a kind! πŸ‘‘
  • db_id β€” the doorbell ID assigned to this job queue. ding-dong, your job is ready πŸ””
  • priority β€” the priority level of the command queue. u8 of pure importance ⭐
  • is_legacy β€” true if this is a legacy command queue. iconic old-school vibes, we respect it πŸ’€
ngl bestie, the two preemption buffers are both marked optional in the original, so don't come for me β€” I'm just the messenger 🧚

🌟 SEE ALSO 🌟

  • Kernel file ./drivers/accel/ivpu/ivpu_job.h
  • struct ivpu_job(9) β€” go read it, it's the whole friend group πŸ’–

aaaand that's the whole page, bestie!! πŸŽ€ this gem lives under ./drivers/accel/ivpu, and the version/date stamp on it is October 2026 β€” so yeah, it's from the future, we manifested it, periodt πŸ’…πŸ¦‹βœ¨

πŸ“¦ where this page comes from