Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mlock.c Create Date:2022-07-28 14:45:21
Last Modify:2022-05-23 14:12:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static bool __munlock_isolate_lru_page(struct page *page, bool getpage)

Type:bool

Parameter:

TypeParameterName
struct page *page
boolgetpage
111  If PageLRU(page) Then
114  lruvec = mem_cgroup_page_lruvec(page, page_pgdat(page))
115  If getpage Then get_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  Return true
122  Return false
Caller
NameDescribe
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