Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-28 14:17:08
Last Modify:2022-05-23 13:41:30 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lruvec_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)

Proto:unsigned long lruvec_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
330  size = 0
333  When zid <= zone_idx && zid < MAX_NR_ZONES cycle
334  zone = node_zones[zid]
336  If Not Returns true if a zone has pages managed by the buddy allocator.* All the reclaim decisions have to use this function rather than* populated_zone(). If the whole zone is reserved then we can easily* end up with populated_zone() && !managed_zone(). Then Continue
339  If Not mem_cgroup_disabled() Then size += mem_cgroup_get_zone_lru_size(lruvec, lru, zid)
341  Else size += zone_page_state(zone, NR_ZONE_LRU_BASE + lru)
344  Return size
Caller
NameDescribe
get_scan_countDetermine how aggressively the anon and file LRU lists should be* scanned