函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:reclaim_pages

函数原型:unsigned long reclaim_pages(struct list_head *page_list)

返回类型:unsigned long

参数:

类型参数名称
struct list_head *page_list
2113  nid等于负1
2114  nr_reclaimed等于0
2115  LIST_HEAD(node_page_list)
2118  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., Writepage batching in laptop mode; RECLAIM_WRITE = 1, Can mapped pages be reclaimed? = 1, Can pages be swapped as part of reclaim? = 1, }
2126  当非链表为空循环
2127  page等于lru_to_page(page_list)
2128  如果nid恒等于负1则
2129  nid等于page_to_nid(page)
2133  如果nid恒等于page_to_nid(page)则
2136  继续下一循环
2139  nr_reclaimed加等于shrink_page_list() returns the number of reclaimed pages
2143  当非链表为空循环
2144  page等于lru_to_page( & node_page_list)
2149  nid等于负1
2152  如果非链表为空
2153  nr_reclaimed加等于shrink_page_list() returns the number of reclaimed pages
2157  当非链表为空循环
2158  page等于lru_to_page( & node_page_list)
2164  返回:nr_reclaimed
调用者
名称描述
madvise_cold_or_pageout_pte_range