函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Idle page tracking only considers user memory pages, for other types of* pages the idle flag is always unset and an attempt to set it is silently* ignored

函数原型:static struct page *page_idle_get_page(unsigned long pfn)

返回类型:struct page

参数:

类型参数名称
unsigned longpfn
36  如果非pfn_valid(pfn)则返回:NULL
39  page等于pfn_to_page(pfn)
40  如果非page或非PageLRU(page)或非Try to grab a ref unless the page has a refcount of zero, return false if* that is the case.* This can be called when MMU is off so it must not access* any of the virtual mappings.则返回:NULL
44  pgdat等于page_pgdat(page)
45  spin_lock_irq( & Write-intensive fields used by page reclaim )
46  如果此条件成立可能性小(为编译器优化)(!PageLRU(page))则
47  Perform a free_page(), also freeing any swap cache associated with* this page if it is the last user of the page.
48  page = NULL
50  spin_unlock_irq( & Write-intensive fields used by page reclaim )
51  返回:page
调用者
名称描述
page_idle_bitmap_read
page_idle_bitmap_write