函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\workqueue.c Create Date:2022-07-27 10:28:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:wq_numa_init

函数原型:static void __init wq_numa_init(void)

返回类型:void

参数:

5852  如果num_possible_nodes()小于等于1则返回
5855  如果possible CPUs of each node
5856  打印信息("workqueue: NUMA affinity support disabled\n")
5857  返回
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等于分配数组内存并置零
5869  BUG_ON(!tbl)
5871  for_each_node(node)
5872  BUG_ON(!zalloc_cpumask_var_node( & tbl[node], GFP_KERNEL, NUMA节点状态(node) ? node : NUMA_NO_NODE))
5875  遍历可用CPU(cpu)
5876  node等于cpu_to_node(cpu)
5877  如果WARN_ON(node == NUMA_NO_NODE)则
5878  打印警告信息("workqueue: NUMA node mapping not available for cpu%d, disabling NUMA support\n", cpu)
5880  返回
5882  设置CPU信息
5885  wq_numa_possible_cpumask等于tbl
5886  unbound NUMA affinity enabled = true
调用者
名称描述
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