Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:workqueue_set_unbound_cpumask - Set the low-level unbound cpumask*@cpumask: the cpumask to set* The low-level workqueues cpumask is a global cpumask that limits* the affinity of all unbound workqueues. This function check the @cpumask

Proto:int workqueue_set_unbound_cpumask(cpumask_var_t cpumask)

Type:int

Parameter:

TypeParameterName
cpumask_var_tcpumask
5297  ret = -EINVAL
5300  If Not zalloc_cpumask_var( & saved_cpumask, GFP_KERNEL) Then Return -ENOMEM
5307  pumask_and - *dstp = *src1p & *src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input* If *@dstp is empty, returns 0, else returns 1
5308  If Not pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear. Then
5309  apply_wqattrs_lock()
5312  pumask_copy - *dstp = *srcp*@dstp: the result*@srcp: the input cpumask
5315  pumask_copy - *dstp = *srcp*@dstp: the result*@srcp: the input cpumask
5316  ret = workqueue_apply_unbound_cpumask()
5319  If ret < 0 Then pumask_copy - *dstp = *srcp*@dstp: the result*@srcp: the input cpumask
5322  apply_wqattrs_unlock()
5325  free_cpumask_var(saved_cpumask)
5326  Return ret