Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:memcg_set_shrinker_bit

Proto:void memcg_set_shrinker_bit(struct mem_cgroup *memcg, int nid, int shrinker_id)

Type:void

Parameter:

TypeParameterName
struct mem_cgroup *memcg
intnid
intshrinker_id
426  If shrinker_id >= 0 && memcg && Not mem_cgroup_is_root(memcg) Then
429  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
430  map = fetch RCU-protected pointer for dereferencing(shrinker_map)
432  smp_mb__before_atomic()
433  Atomically set a bit in memory
434  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
Caller
NameDescribe
list_lru_add
deferred_split_huge_page