函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mark_page_lazyfree - make an anon page lazyfree*@page: page to deactivate* mark_page_lazyfree() moves @page to the inactive file list.* This is done to accelerate the reclaim of @page.

函数原型:void mark_page_lazyfree(struct page *page)

返回类型:void

参数:

类型参数名称
struct page *page
681  如果PageLRU(page)且PageAnon(page)且PageSwapBacked(page)且非PageSwapCache(page)且非PageUnevictable(page)则
683  pvec等于Must be an lvalue. Since @var must be a simple identifier,* we force a syntax error here if it isn't.(lru_lazyfree_pvecs)
685  get_page(page)
686  如果非Add a page to a pagevec. Returns the number of slots still available.PageCompound(page)则pagevec_lru_move_fn(pvec, lru_lazyfree_fn, NULL)
688  The weird & is necessary because sparse considers (void)(var) to be* a direct dereference of percpu variable (var).(lru_lazyfree_pvecs)
调用者
名称描述
madvise_free_pte_range
madvise_free_huge_pmdReturn true if we do MADV_FREE successfully on entire pmd page.* Otherwise, return false.