Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mem_cgroup_node_nr_lru_pages

Proto:static unsigned long mem_cgroup_node_nr_lru_pages(struct mem_cgroup *memcg, int nid, unsigned int lru_mask)

Type:unsigned long

Parameter:

TypeParameterName
struct mem_cgroup *memcg
intnid
unsigned intlru_mask
3619  lruvec = mem_cgroup_lruvec - get the lru list vector for a memcg & node*@memcg: memcg of the wanted lruvec* Returns the lru list vector holding pages for a given @memcg &*@node combination. This can be the node lruvec, if the memory* controller is disabled.
3620  nr = 0
3623  VM_BUG_ON((unsigned)nid >= nr_node_ids)
3626  If Not (BIT(lru) & lru_mask) Then Continue
3628  nr += lruvec_page_state_local(lruvec, NR_LRU_BASE + lru)
3630  Return nr
Caller
NameDescribe
memcg_numa_stat_show