函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-27 15:41:55
Last Modify:2022-05-23 13:41:30 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:reclaim_clean_pages_from_list

函数原型:unsigned long reclaim_clean_pages_from_list(struct zone *zone, struct list_head *page_list)

返回类型:unsigned long

参数:

类型参数名称
struct zone *zone
struct list_head *page_list
1504  struct scan_control sc = { This context's GFP mask = GFP_KERNEL, Scan (total_size >> priority) pages at once = The "priority" of VM scanning is how much of the queues we will scan in one* go. A value of 12 for DEF_PRIORITY implies that we will scan 1/4096th of the* queues ("queue_length >> 12") during an aging round., Can mapped pages be reclaimed? = 1, }
1512  LIST_HEAD(clean_pages)
1515  如果page_is_file_cache - should the page be on a file LRU or anon LRU?*@page: the page to test* Returns 1 if @page is page cache page backed by a regular filesystem,* or 0 if @page is anonymous, tmpfs or otherwise ram or swap backed且非PageDirty(page)且非__PageMovable(page)且非PageUnevictable(page)则
1517  ClearPageActive(page)
1518  链表项移动到头部
1522  ret等于shrink_page_list() returns the number of reclaimed pages
1524  为栈加入第二个链表项
1525  mod_node_page_state(建立内存域和父结点之间的关联, NR_ISOLATED_FILE, - ret)
1526  返回:ret