函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-27 17:46:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mem_cgroup_node_nr_lru_pages

函数原型:static unsigned long mem_cgroup_node_nr_lru_pages(struct mem_cgroup *memcg, int nid, unsigned int lru_mask)

返回类型:unsigned long

参数:

类型参数名称
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  如果非BIT(lru)按位与lru_mask的值则继续下一循环
3628  nr加等于lruvec_page_state_local(lruvec, NR_LRU_BASE + lru)
3630  返回:nr
调用者
名称描述
memcg_numa_stat_show