函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vmstat_start

函数原型:static void *vmstat_start(struct seq_file *m, loff_t *pos)

返回类型:void

参数:

类型参数名称
struct seq_file *m
loff_t *pos
1671  如果pos大于等于NR_VMSTAT_ITEMS则返回:NULL
1674  BUILD_BUG_ON - break compile if a condition is true(ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(vmstat_text) < NR_VMSTAT_ITEMS)
1675  v等于分配数组内存
1676  private等于v
1677  如果非v则返回:错误号
1679 i小于NR_VM_ZONE_STAT_ITEMS循环v[i]等于global_zone_page_state(i)
1681  v加等于NR_VM_ZONE_STAT_ITEMS
1684 i小于NR_VM_NUMA_STAT_ITEMS循环v[i]等于global_numa_state(i)
1686  v加等于NR_VM_NUMA_STAT_ITEMS
1689 i小于NR_VM_NODE_STAT_ITEMS循环v[i]等于global_node_page_state(i)
1691  v加等于NR_VM_NODE_STAT_ITEMS
1693  global_dirty_limits - background-writeback and dirty-throttling thresholds*@pbackground: out parameter for bg_thresh*@pdirty: out parameter for thresh* Calculate bg_thresh and thresh for global_wb_domain. See* domain_dirty_limits() for details.
1695  v加等于NR_VM_WRITEBACK_STAT_ITEMS
1702  返回:privatepos