Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Test all pages in the range is free(means isolated) or not.* all pages in [start_pfn...end_pfn) must be in the same zone.* zone->lock must be held before call this.* Returns the last tested pfn.

Proto:static unsigned long __test_page_isolated_in_pageblock(unsigned long pfn, unsigned long end_pfn, int flags)

Type:unsigned long

Parameter:

TypeParameterName
unsigned longpfn
unsigned longend_pfn
intflags
265  When pfn < end_pfn cycle
266  If Not pfn_valid_within(pfn) Then
267  pfn++
268  Continue
270  page = pfn_to_page(pfn)
271  If PageBuddy() indicates that the page is free and in the buddy system* (see mm/page_alloc.c). Then pfn += 1 << page_order(page)
278  Else if flags & MEMORY_OFFLINE && PageHWPoison(page) Then pfn++
281  Else Break
285  Return pfn
Caller
NameDescribe
test_pages_isolatedCaller should ensure that requested range is in a single zone