Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pagetypeinfo_showmixedcount_print

Proto:void pagetypeinfo_showmixedcount_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
259  pfn = zone_start_pfn == zone_start_paddr >> PAGE_SHIFT
260  end_pfn = pfn + spanned_pages
261  unsigned long count[MIGRATE_TYPES] = {0, }
266  pfn = zone_start_pfn == zone_start_paddr >> PAGE_SHIFT
273  When pfn < end_pfn cycle
274  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)
275  If Not page Then
277  Continue
280  block_end_pfn = @a is a power of 2 value (pfn + 1, pageblock_nr_pages)
281  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)
283  pageblock_mt = get_pageblock_migratetype(page)
285  When pfn < block_end_pfn cycle
286  If Not pfn_valid_within(pfn) Then Continue
290  page = pfn_to_page(pfn)
292  If page_zone(page) != zone Then Continue
304  If PageReserved(page) Then Continue
317  If pageblock_mt != page_mt Then
320  Else count[pageblock_mt]++
323  pfn = block_end_pfn
324  Break
326  pfn += (1UL << order) - 1
331  seq_printf(m, "Node %d, zone %8s ", node_id, name)
332  When i < MIGRATE_TYPES cycle seq_printf(m, "%12lu ", count[i])
334  seq_putc(m, '\n')