| Function report | 
| 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 activity | Download SCCT | Chinese | 
Name:vmstat_start
Proto:static void *vmstat_start(struct seq_file *m, loff_t *pos)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| 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). | 
| 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 | 
| 1695 | v += NR_VM_WRITEBACK_STAT_ITEMS | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |