- alloc_workqueue(fmt, flags, max_active, args...);
- printf format for the name of the workqueue
- WQ_* flags
- max in-flight work items, 0 for default args...: args for fmt
- variable arguments
Allocate a workqueue with the specified parameters. For detailed information on WQ_* flags, please refer to Documentation/workqueue.txt.
The __lock_name macro dance is to guarantee that single lock_class_key doesn't end up with different namesm, which isn't allowed by lockdep.
Pointer to the allocated workqueue on success, NULL on failure.