other versions
ALLOC_WORKQUEUE(9) | Driver Basics | ALLOC_WORKQUEUE(9) |
NAME¶
alloc_workqueue - allocate a workqueueSYNOPSIS¶
alloc_workqueue(fmt, flags,
max_active, args...);
ARGUMENTS¶
fmtprintf 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.RETURN¶
Pointer to the allocated workqueue on success, NULL on failure.COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |