Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:workqueue_apply_unbound_cpumask

Proto:static int workqueue_apply_unbound_cpumask(void)

Type:int

Parameter:Nothing

5251  LIST_HEAD(ctxs)
5252  ret = 0
5256  lockdep_assert_held( & wq_pool_mutex)
5259  If Not (hot fields used during command issue, aligned to cacheline & WQ_UNBOUND) Then Continue
5262  If hot fields used during command issue, aligned to cacheline & __WQ_ORDERED Then Continue
5265  ctx = allocate the attrs and pwqs for later installation
5266  If Not ctx Then
5267  ret = -ENOMEM
5268  Break
5271  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
5275  If Not ret Then set attrs and install prepared pwqs, @ctx points to old pwqs on return
5277  the resources after success or abort
5280  Return ret
Caller
NameDescribe
workqueue_set_unbound_cpumaskworkqueue_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