函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-27 15:44:06
Last Modify:2022-05-23 13:41:30 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:It's optimal to keep kswapds on the same CPUs as their memory, butnot required for correctness. So if the last cpu in a node goesaway, we get changed to run anywhere: as the first one comes back,restore their cpu bindings.

函数原型:static int kswapd_cpu_online(unsigned int cpu)

返回类型:int

参数:

类型参数名称
unsigned intcpu
4057  for_each_node_state(nid, N_MEMORY)
4058  pgdat等于NUMA节点数据区(nid)
4061  mask等于Returns a pointer to the cpumask of CPUs on Node 'node'.
4063  如果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.(cpu_online_mask, mask)小于CPU数量set_cpus_allowed_ptr(负责该结点的交换守护进程, mask)
4067  返回:0