Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Walk zones in a node and print using a callback.* If @assert_populated is true, only use callback for zones that are populated.

Proto:static void walk_zones_in_node(struct seq_file *m, pg_data_t *pgdat, bool assert_populated, bool nolock, void (*print)(struct seq_file *m, pg_data_t *, struct zone *))

Type:void

Parameter:

TypeParameterName
struct seq_file *m
pg_data_t *pgdat
boolassert_populated
boolnolock
void (*print
1335  node_zones = node_zones
1338  When zone - node_zones < MAX_NR_ZONES cycle
1339  If assert_populated && Not Returns true if a zone has memory Then Continue
1342  If Not nolock Then spin_lock_irqsave( & Primarily protects free_area , flags)
1344  print(m, pgdat, zone)
1345  If Not nolock Then spin_unlock_irqrestore( & Primarily protects free_area , flags)
Caller
NameDescribe
frag_showThis walks the free areas for each zone.
pagetypeinfo_showfreePrint out the free pages at each order for each migatetype
pagetypeinfo_showblockcountPrint out the number of pageblocks for each migratetype
pagetypeinfo_showmixedcountPrint out the number of pageblocks for each migratetype that contain pages* of other types. This gives an indication of how well fallbacks are being* contained by rmqueue_fallback(). It requires information from PAGE_OWNER* to determine what is going on
zoneinfo_showOutput information about zones in @pgdat. All zones are printed regardless* of whether they are populated or not: lowmem_reserve_ratio operates on the* set of all zones and userspace would not be aware of such zones if they are