'\" t .\" Title: workqueue_congested .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "WORKQUEUE_CONGESTED" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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" workqueue_congested \- test whether a workqueue is congested .SH "SYNOPSIS" .HP \w'bool\ workqueue_congested('u .BI "bool workqueue_congested(int\ " "cpu" ", struct\ workqueue_struct\ *\ " "wq" ");" .SH "ARGUMENTS" .PP \fIcpu\fR .RS 4 CPU in question .RE .PP \fIwq\fR .RS 4 target workqueue .RE .SH "DESCRIPTION" .PP Test whether \fIwq\fR\*(Aqs cpu workqueue for \fIcpu\fR is congested\&. There is no synchronization around this function and the test result is unreliable and only useful as advisory hints or for debugging\&. .PP If \fIcpu\fR is WORK_CPU_UNBOUND, the test is performed on the local CPU\&. Note that both per\-cpu and unbound workqueues may be associated with multiple pool_workqueues which have separate congested states\&. A workqueue being congested on one CPU doesn\*(Aqt mean the workqueue is also contested on other CPUs / NUMA nodes\&. .SH "RETURN" .PP \fBtrue\fR if congested, \fBfalse\fR otherwise\&. .SH "COPYRIGHT" .br