函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\rmap.c Create Date:2022-07-27 16:26:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

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

返回类型:void

参数:

类型参数名称
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)
调用者
名称描述
__munlock_isolated_pageFinish munlock after successful page isolation* Page must be locked. This is a wrapper for try_to_munlock()* and putback_lru_page() with munlock accounting.