Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct lruvec * | lruvec | |
enum lru_list | lru | |
int | zone_idx |
330 | size = 0 |
333 | When zid <= zone_idx && zid < MAX_NR_ZONES cycle |
334 | zone = node_zones[zid] |
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 |
Name | Describe |
---|---|
get_scan_count | Determine how aggressively the anon and file LRU lists should be* scanned |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |