Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\workqueue.c Create Date:2022-07-28 09:27:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:wq_clamp_max_active

Proto:static int wq_clamp_max_active(int max_active, unsigned int flags, const char *name)

Type:int

Parameter:

TypeParameterName
intmax_active
unsigned intflags
const char *name
4180  lim = If flags & WQ_UNBOUND Then unbound wq's aren't per-cpu, scale max_active according to #cpus Else WQ_MAX_ACTIVE
4182  If max_active < 1 || max_active > lim Then pr_warn("workqueue: max_active %d requested for %s is out of range, clamping between %d and %d\n", max_active, name, 1, lim)
4186  Return clamp_val - return a value clamped to a given range using val's type*@val: current value*@lo: minimum allowable value*@hi: maximum allowable value* This macro does no typechecking and uses temporary variables of whatever* type the input argument @val is(max_active, 1, lim)
Caller
NameDescribe
alloc_workqueue
workqueue_set_max_activeworkqueue_set_max_active - adjust max_active of a workqueue*@wq: target workqueue*@max_active: new max_active value.* Set max_active of @wq to @max_active.* CONTEXT:* Don't call from IRQ context.