函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:page_idle_clear_pte_refs

函数原型:static void page_idle_clear_pte_refs(struct page *page)

返回类型:void

参数:

类型参数名称
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  如果非Return true if this page is mapped into pagetables.* For compound page it returns true if any subpage of compound page is mapped.或非Neutral page->mapping pointer to address_space or anon_vma or other 则返回
111  need_lock等于非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  如果need_lock且非Return true if the page was successfully locked则返回
115  rmap_walk(page, (structrmap_walk_control * ) & rwc)
117  如果need_locklock_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.
调用者
名称描述
page_idle_bitmap_read
page_idle_bitmap_write