Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Check that the whole (or subset of) a pageblock given by the interval of* [start_pfn, end_pfn) is valid and within the same zone, before scanning it* with the migration of free compaction scanner

Proto:struct page *__pageblock_pfn_to_page(unsigned long start_pfn, unsigned long end_pfn, struct zone *zone)

Type:struct page

Parameter:

TypeParameterName
unsigned longstart_pfn
unsigned longend_pfn
struct zone *zone
1522  end_pfn--
1524  If Not pfn_valid(start_pfn) || Not pfn_valid(end_pfn) Then Return NULL
1527  start_page = Return page for the valid pfn only if the page is online. All pfn* walkers which rely on the fully initialized page->flags and others* should use this rather than pfn_valid && pfn_to_page(start_pfn)
1528  If Not start_page Then Return NULL
1531  If page_zone(start_page) != zone Then Return NULL
1534  end_page = pfn_to_page(end_pfn)
1537  If The identification function is mainly used by the buddy allocator for* determining if two pages could be buddies != The identification function is mainly used by the buddy allocator for* determining if two pages could be buddies Then Return NULL
1540  Return start_page
Caller
NameDescribe
set_zone_contiguous
pageblock_pfn_to_page