函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmstat.c Create Date:2022-07-27 15:47:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型: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 *))

返回类型:void

参数:

类型参数名称
struct seq_file *m
pg_data_t *pgdat
boolassert_populated
boolnolock
void (*print
1335  node_zones等于包含了结点中各内存域的数据结构
1338 zonenode_zones小于MAX_NR_ZONES循环
1339  如果assert_populated且非Returns true if a zone has memory 则继续下一循环
1342  如果非nolockspin_lock_irqsave( & 自旋锁, flags)
1344  print(m, pgdat, zone)
1345  如果非nolockspin_unlock_irqrestore( & 自旋锁, flags)
调用者
名称描述
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