Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vmstat_start

Proto:static void *vmstat_start(struct seq_file *m, loff_t *pos)

Type:void

Parameter:

TypeParameterName
struct seq_file *m
loff_t *pos
1671  If pos >= NR_VMSTAT_ITEMS Then Return 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 = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
1676  private = v
1677  If Not v Then Return ERR_PTR( - ENOMEM)
1679  When i < NR_VM_ZONE_STAT_ITEMS cycle v[i] = global_zone_page_state(i)
1681  v += NR_VM_ZONE_STAT_ITEMS
1684  When i < NR_VM_NUMA_STAT_ITEMS cycle v[i] = global_numa_state(i)
1686  v += NR_VM_NUMA_STAT_ITEMS
1689  When i < NR_VM_NODE_STAT_ITEMS cycle 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  Return private + pos