Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-28 14:20:09
Last Modify:2022-05-23 13:41:30 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static int kswapd_cpu_online(unsigned int cpu)

Type:int

Parameter:

TypeParameterName
unsigned intcpu
4057  for_each_node_state(nid, N_MEMORY)
4058  pgdat = NODE_DATA(nid)
4061  mask = Returns a pointer to the cpumask of CPUs on Node 'node'.
4063  If 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) < Setup number of possible processor ids Then set_cpus_allowed_ptr( Protected by mem_hotplug_begin/end() , mask)
4067  Return 0