Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\rmap.c Create Date:2022-07-28 14:57:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ry_to_munlock - try to munlock a page*@page: the page to be munlocked* Called from munlock code. Checks all of the VMAs mapping the page* to make sure nobody else has this page mlocked. The page will be

Proto:void try_to_munlock(struct page *page)

Type:void

Parameter:

TypeParameterName
struct page *page
1778  struct rmap_walk_control rwc = { executed on each vma where page is mapped = @arg: enum ttu_flags will be passed to this argument, passed to rmap_one() and invalid_vma() = (void * ) munlock mode , for checking traversing termination condition = page_not_mapped, for getting anon_lock by optimized way rather than default = Similar to page_get_anon_vma() except it locks the anon_vma.* Its a little more complex as it tries to keep the fast path to a single* atomic op -- the trylock. If we fail the trylock, we fall back to getting a, }
1786  VM_BUG_ON_PAGE(!PageLocked(page) || PageLRU(page), page)
1787  VM_BUG_ON_PAGE(PageCompound(page) && PageDoubleMap indicates that the compound page is mapped with PTEs as well* as PMDs.* This is required for optimization of rmap operations for THP: we can postpone* per small page mapcount accounting (and its overhead from atomic operations), page)
1789  rmap_walk(page, & rwc)