Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:wq_numa_init

Proto:static void __init wq_numa_init(void)

Type:void

Parameter:Nothing

5852  If num_possible_nodes() <= 1 Then Return
5855  If possible CPUs of each node Then
5856  pr_info("workqueue: NUMA affinity support disabled\n")
5857  Return
5860  uf for wq_update_unbound_numa_attrs(), protected by CPU hotplug exclusion = alloc_workqueue_attrs - allocate a workqueue_attrs* Allocate a new workqueue_attrs, initialize with default settings and* return it.* Return: The allocated new workqueue_attr on success. %NULL on failure.
5861  BUG_ON(!uf for wq_update_unbound_numa_attrs(), protected by CPU hotplug exclusion )
5868  tbl = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
5869  BUG_ON(!tbl)
5871  for_each_node(node)
5872  BUG_ON(!zalloc_cpumask_var_node( & tbl[node], GFP_KERNEL, node_online(node) ? node : NUMA_NO_NODE))
5875  for_each_possible_cpu(cpu)
5876  node = cpu_to_node(cpu)
5877  If WARN_ON(node == NUMA_NO_NODE) Then
5878  pr_warn("workqueue: NUMA node mapping not available for cpu%d, disabling NUMA support\n", cpu)
5880  Return
5882  pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
5885  wq_numa_possible_cpumask = tbl
5886  unbound NUMA affinity enabled = true
Caller
NameDescribe
workqueue_initworkqueue_init - bring workqueue subsystem fully online* This is the latter half of two-staged workqueue subsystem initialization* and invoked as soon as kthreads can be created and scheduled