alloc_workqueue(9) 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.

COPYRIGHT