vdo_make_work_queue(9)
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β Thevdo_threadstructure 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 beNULL. Semicolon andNULLare 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 π
- Kernel file
./drivers/md/dm-vdo/funnel-workqueue.cWork queue definition.(9),vdo_get_work_queue_private_data(9)
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
- 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