Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static struct page *page_idle_get_page(unsigned long pfn)

Type:struct page

Parameter:

TypeParameterName
unsigned longpfn
36  If Not pfn_valid(pfn) Then Return NULL
39  page = pfn_to_page(pfn)
40  If Not page || Not PageLRU(page) || Not 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. Then Return NULL
44  pgdat = page_pgdat(page)
45  spin_lock_irq( & Write-intensive fields used by page reclaim )
46  If Value for the false possibility is greater at compile time(!PageLRU(page)) Then
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  Return page
Caller
NameDescribe
page_idle_bitmap_read
page_idle_bitmap_write