vdo_make_work_queue(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to vdo_make_work_queue(9) from the Kernel API Manual β€” we’re making a work queue today and it’s giving main character energy. πŸ’…βœ¨

🌸 NAME 🌸

vdo_make_work_queue - Create a work queue; if multiple threads are requested, completions will be distributed to them in round-robin fashion. Periodt. πŸ’–

✨ SYNOPSIS ✨

okay so here’s the exact signature, no cap:

int vdo_make_work_queue (const char *thread_name_prefix , const char
*name , struct vdo_thread *owner , const struct vdo_work_queue_type
*type , unsigned int thread_count , void *thread_privates[] , struct
vdo_work_queue **queue_ptr );

πŸŽ€ ARGUMENTS πŸŽ€

  • thread_name_prefix β€” A prefix for the thread names to identify them as a vdo thread. Name-tag energy, honestly. 🏷️
  • name β€” A base name to identify this queue. Keep it identifiable, bestie. πŸ’–
  • owner β€” The vdo_thread structure to manage this queue. It’s the owner of the whole situation. πŸ‘‘
  • type β€” The type of queue to create. Pick the queue type, not the vibe. πŸ’…
  • thread_count β€” The number of actual threads handling this queue. Actual. Threads. Periodt. πŸ”₯
  • thread_privates β€” An array of private contexts, one for each thread; may be NULL. Semicolon and NULL are both iconic here. 🫢
  • queue_ptr β€” A pointer to return the new work queue. This is where the new queue comes back to you. 🎁

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the vibe is: each queue is associated with a struct vdo_thread which has a single vdo thread id. That’s the little identity situation. πŸͺͺ

Regardless of the actual number of queues and threads allocated here, code outside of the queue implementation will treat this as a single zone. So outside code sees one zone, even if you’ve got a whole squad of queues and threads under the hood. No cap. πŸ‘‘

bestie reminder: β€œallocated here” and β€œoutside of the queue implementation” are doing real work in that sentence β€” don’t forget them. πŸ’œ

🌈 SEE ALSO 🌈

go read those, bestie β€” your kernel knowledge is about to eat. 🌟


source/version: ./drivers/md/dm-vdo Β· date: October 2026 Β· page: vdo_make_work_queue(9) β€” mwah, bye bestie! πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from