函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pagetypeinfo_showfree_print

函数原型:static void pagetypeinfo_showfree_print(struct seq_file *m, pg_data_t *pgdat, struct zone *zone)

返回类型:void

参数:

类型参数名称
struct seq_file *m
pg_data_t *pgdat
struct zone *zone
1378 mtype小于MIGRATE_TYPES循环
1379  seq_printf(m, "Node %4d, zone %8s, type %12s ", 全局结点ID, 内存域的惯用名称(NORMAL DMA HIGHMEM), In mm/page_alloc.c; keep in sync also with show_migration_types() there [mtype])
1384  freecount等于0
1387  bool overflow = false
1389  area等于伙伴系统空闲内存页[order]的地址
1401  如果freecount先自加大于等于100000则
1402  overflow = true
1403  退出
1406  seq_printf(m, "%s%6lu ", overflow ? ">" : "", freecount)
1407  spin_unlock_irq( & 自旋锁)
1408  cond_resched()
1409  spin_lock_irq( & 自旋锁)
1411  seq_putc(m, '\n')