Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:For two pages to be swapped in the shuffle, they must be free (on a* 'free_area' lru), have the same order, and have the same migratetype.

Proto:static struct page *__meminit shuffle_valid_page(unsigned long pfn, int order)

Type:struct page

Parameter:

TypeParameterName
unsigned longpfn
intorder
71  If Not pfn_valid_within(pfn) Then Return NULL
75  If Not pfn_present(pfn) Then Return NULL
79  page = pfn_to_page(pfn)
80  If Not PageBuddy() indicates that the page is free and in the buddy system* (see mm/page_alloc.c). Then Return NULL
87  If page_order(page) != order Then Return NULL
90  Return page
Caller
NameDescribe
__shuffle_zone