Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:list_lru_count_one

Proto:unsigned long list_lru_count_one(struct list_lru *lru, int nid, struct mem_cgroup *memcg)

Type:unsigned long

Parameter:

TypeParameterName
struct list_lru *lru
intnid
struct mem_cgroup *memcg
187  nlru = node[nid]
191  _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
192  l = list_lru_from_memcg_idx(nlru, memcg_cache_id(memcg))
193  count = may become negative during memcg reparenting
194  _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()
196  Return count
Caller
NameDescribe
list_lru_shrink_count