Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_pages_in_zone

Proto:static void init_pages_in_zone(pg_data_t *pgdat, struct zone *zone)

Type:void

Parameter:

TypeParameterName
pg_data_t *pgdat
struct zone *zone
548  pfn = zone_start_pfn == zone_start_paddr >> PAGE_SHIFT
549  end_pfn = zone_end_pfn(zone)
550  count = 0
557  When pfn < end_pfn cycle
560  If Not pfn_valid(pfn) Then
562  Continue
565  block_end_pfn = @a is a power of 2 value (pfn + 1, pageblock_nr_pages)
566  block_end_pfn = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(block_end_pfn, end_pfn)
568  When pfn < block_end_pfn cycle
572  If Not pfn_valid_within(pfn) Then Continue
575  page = pfn_to_page(pfn)
577  If page_zone(page) != zone Then Continue
595  If PageReserved(page) Then Continue
609  count++
611  cond_resched()
614  pr_info("Node %d, zone %8s: page owner found early allocated %lu pages\n", node_id, name, count)
Caller
NameDescribe
init_zones_in_node