Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:page_idle_clear_pte_refs

Proto:static void page_idle_clear_pte_refs(struct page *page)

Type:void

Parameter:

TypeParameterName
struct page *page
101  static const struct rmap_walk_control rwc = { executed on each vma where page is mapped = page_idle_clear_pte_refs_one, 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, }
107  If Not Return true if this page is mapped into pagetables.* For compound page it returns true if any subpage of compound page is mapped. || Not Neutral page->mapping pointer to address_space or anon_vma or other Then Return
111  need_lock = Not PageAnon(page) || A KSM page is one of those write-protected "shared pages" or "merged pages"* which KSM maps into multiple mms, wherever identical anonymous page content* is found in VM_MERGEABLE vmas. It's a PageAnon page, pointing not to any
112  If need_lock && Not Return true if the page was successfully locked Then Return
115  rmap_walk(page, (structrmap_walk_control * ) & rwc)
117  If need_lock Then lock_page - unlock a locked page*@page: the page* Unlocks the page and wakes up sleepers in ___wait_on_page_locked().* Also wakes sleepers in wait_on_page_writeback() because the wakeup* mechanism between PageLocked pages and PageWriteback pages is shared.
Caller
NameDescribe
page_idle_bitmap_read
page_idle_bitmap_write