Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\memcontrol.h Create Date:2022-07-28 05:57:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mem_cgroup_get_zone_lru_size

Proto:static inline unsigned long mem_cgroup_get_zone_lru_size(struct lruvec *lruvec, enum lru_list lru, int zone_idx)

Type:unsigned long

Parameter:

TypeParameterName
struct lruvec *lruvec
enum lru_listlru
intzone_idx
535  mz = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(lruvec, structmem_cgroup_per_node, lruvec)
536  Return lru_zone_size[zone_idx][lru]
Caller
NameDescribe
lruvec_lru_sizelruvec_lru_size - Returns the number of pages on the given LRU list.*@lruvec: lru vector*@lru: lru to use*@zone_idx: zones to consider (use MAX_NR_ZONES for the whole LRU list)