Name
alloc_workqueue —
allocate a workqueue
Synopsis
alloc_workqueue ( | fmt, |
| flags, |
| max_active, |
| args...) ; |
Arguments
fmt
printf format for the name of the workqueue
flags
WQ_* flags
max_active
max in-flight work items, 0 for default
args
...: args for fmt
args...
variable arguments
Description
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.
RETURNS
Pointer to the allocated workqueue on success, NULL
on failure.