函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mlock.c Create Date:2022-07-27 16:12:56
Last Modify:2022-05-23 14:12:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Isolate a page from LRU with optional get_page() pin.* Assumes lru_lock already held and page already pinned.

函数原型:static bool __munlock_isolate_lru_page(struct page *page, bool getpage)

返回类型:bool

参数:

类型参数名称
struct page *page
boolgetpage
111  如果PageLRU(page)则
114  lruvec等于mem_cgroup_page_lruvec(page, page_pgdat(page))
115  如果getpageget_page(page)
117  ClearPageLRU(page)
118  del_page_from_lru_list(page, lruvec, page_lru - which LRU list should a page be on?*@page: the page to test* Returns the LRU list a page should be on, as an index* into the array of LRU lists.)
119  返回:true
122  返回:false
调用者
名称描述
munlock_vma_pagemunlock_vma_page - munlock a vma page*@page: page to be unlocked, either a normal page or THP page head* returns the size of the page as a page mask (0 for normal page,* HPAGE_PMD_NR - 1 for THP head page)
__munlock_pagevecMunlock a batch of pages from the same zone* The work is split to two main phases