Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\cpumask.h Create Date:2022-07-28 05:34:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cpumask_next_and

Proto:static inline unsigned int cpumask_next_and(int n, const struct cpumask *srcp, const struct cpumask *andp)

Type:unsigned int

Parameter:

TypeParameterName
intn
const struct cpumask *srcp
const struct cpumask *andp
175  Return n + 1
Caller
NameDescribe
wq_select_unbound_cpuWhen queueing an unbound work item to a wq, prefer local CPU if allowed* by wq_unbound_cpumask. Otherwise, round robin among the allowed ones to* avoid perturbing sensitive tasks.
blk_mq_hctx_next_cpuIt'd be great if the workqueue API had a way to pass* in a mask and had some smarts for more clever placement.* For now we just round-robin here, switching for every* BLK_MQ_CPU_WORK_BATCH queued items.