函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:si_meminfo_node

函数原型:void si_meminfo_node(struct sysinfo *val, int nid)

返回类型:void

参数:

类型参数名称
struct sysinfo *val
intnid
5138  managed_pages等于0
5139  managed_highpages等于0
5140  free_highpages等于0
5141  pgdat等于NUMA节点数据区(nid)
5143 zone_type小于MAX_NR_ZONES循环managed_pages加等于zone_managed_pages( & 包含了结点中各内存域的数据结构[zone_type])
5145  Total usable main memory size 等于managed_pages
5146  Amount of shared memory 等于Determine the per node value of a stat item.
5147  Available memory size 等于Determine the per node value of a stat item. This function* is called frequently in a NUMA machine, so try to be as* frugal as possible.
5160  Total high memory size 等于managed_highpages
5161  Available high memory size 等于free_highpages
5163  Memory unit size in bytes 等于PAGE_SIZE