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:Finish munlock after successful page isolation* Page must be locked. This is a wrapper for try_to_munlock()* and putback_lru_page() with munlock accounting.

Proto:static void __munlock_isolated_page(struct page *page)

Type:void

Parameter:

TypeParameterName
struct page *page
137  If page_mapcount(page) > 1 Then alled in munlock()/munmap() path to check for other vmas holding* the page mlocked.
141  If Not PageMlocked(page) Then Disable counters
144  putback_lru_page - put previously isolated page onto appropriate LRU list*@page: page to be put back to appropriate lru list* Add previously isolated @page to appropriate LRU list.* Page may still be unevictable for other reasons.
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