Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pagetypeinfo_showblockcount_print

Proto:static void pagetypeinfo_showblockcount_print(struct seq_file *m, pg_data_t *pgdat, struct zone *zone)

Type:void

Parameter:

TypeParameterName
struct seq_file *m
pg_data_t *pgdat
struct zone *zone
1437  start_pfn = zone_start_pfn == zone_start_paddr >> PAGE_SHIFT
1438  end_pfn = zone_end_pfn(zone)
1439  unsigned long count[MIGRATE_TYPES] = {0, }
1441  When pfn < end_pfn cycle
1444  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(pfn)
1445  If Not page Then Continue
1449  If Not memmap_valid_within(pfn, page, zone) Then Continue
1452  If page_zone(page) != zone Then Continue
1455  mtype = get_pageblock_migratetype(page)
1457  If mtype < MIGRATE_TYPES Then count[mtype]++
1462  seq_printf(m, "Node %d, zone %8s ", node_id, name)
1463  When mtype < MIGRATE_TYPES cycle seq_printf(m, "%12lu ", count[mtype])
1465  seq_putc(m, '\n')