函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:page_check_references

函数原型:static enum page_references page_check_references(struct page *page, struct scan_control *sc)

返回类型:enum page_references

参数:

类型参数名称
struct page *page
struct scan_control *sc
1001  referenced_ptes等于page_referenced - test if the page was referenced*@page: the page to test*@is_locked: caller holds lock on the page*@memcg: target memory cgroup*@vm_flags: collect encountered vma->vm_flags who actually referenced the page* Quick test_and_clear_referenced
1003  referenced_page等于TestClearPageReferenced(page)
1009  如果vm_flags按位与VM_LOCKED则返回:PAGEREF_RECLAIM
1012  如果referenced_ptes
1013  如果PageSwapBacked(page)则返回:PAGEREF_ACTIVATE
1029  SetPageReferenced(page)
1031  如果referenced_pagereferenced_ptes大于1则返回:PAGEREF_ACTIVATE
1037  如果vm_flags按位与VM_EXEC则返回:PAGEREF_ACTIVATE
1040  返回:PAGEREF_KEEP
1044  如果referenced_page且非PageSwapBacked(page)则返回:PAGEREF_RECLAIM_CLEAN
1047  返回:PAGEREF_RECLAIM
调用者
名称描述
shrink_page_listshrink_page_list() returns the number of reclaimed pages