函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:workqueue_select_cpu_near - Select a CPU based on NUMA node*@node: NUMA node ID that we want to select a CPU from* This function will attempt to find a "random" cpu available on a given* node

函数原型:static int workqueue_select_cpu_near(int node)

返回类型:int

参数:

类型参数名称
intnode
1536  如果非unbound NUMA affinity enabled 则返回:WORK_CPU_UNBOUND
1540  如果node小于0或node大于等于MAX_NUMNODES或非NUMA节点状态(node)则返回:WORK_CPU_UNBOUND
1544  cpu等于These macros fold the SMP functionality into a single CPU system()
1545  如果node恒等于cpu_to_node(cpu)则返回:cpu
1549  cpu等于cpumask_any_and - pick a "random" cpu from *mask1 & *mask2*@mask1: the first input cpumask*@mask2: the second input cpumask* Returns >= nr_cpu_ids if no cpus set.(Returns a pointer to the cpumask of CPUs on Node 'node'. , cpu_online_mask)
1552  返回:如果cpu小于nr_cpu_idscpu否则WORK_CPU_UNBOUND
调用者
名称描述
queue_work_nodequeue_work_node - queue work on a "random" cpu for a given NUMA node*@node: NUMA node that we are targeting the work for*@wq: workqueue to use*@work: work to queue* We queue the work to a "random" CPU within a given NUMA node