'\" t .\" Title: alloc_workqueue .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "ALLOC_WORKQUEUE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Driver Basics" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" alloc_workqueue \- allocate a workqueue .SH "SYNOPSIS" .HP \w'alloc_workqueue('u .BI "alloc_workqueue(" "fmt" ", " "flags" ", " "max_active" ", " "args\&.\&.\&." ");" .SH "ARGUMENTS" .PP \fIfmt\fR .RS 4 printf format for the name of the workqueue .RE .PP \fIflags\fR .RS 4 WQ_* flags .RE .PP \fImax_active\fR .RS 4 max in\-flight work items, 0 for default \fIargs\fR\&.\&.\&.: args for \fIfmt\fR .RE .PP \fIargs\&.\&.\&.\fR .RS 4 variable arguments .RE .SH "DESCRIPTION" .PP Allocate a workqueue with the specified parameters\&. For detailed information on WQ_* flags, please refer to Documentation/workqueue\&.txt\&. .PP The __lock_name macro dance is to guarantee that single lock_class_key doesn\*(Aqt end up with different namesm, which isn\*(Aqt allowed by lockdep\&. .SH "RETURN" .PP Pointer to the allocated workqueue on success, \fBNULL\fR on failure\&. .SH "COPYRIGHT" .br