函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:si_meminfo

函数原型:void si_meminfo(struct sysinfo *val)

返回类型:void

参数:

类型参数名称
struct sysinfo *val
5123  Total usable main memory size 等于totalram_pages()
5124  Amount of shared memory 等于global_node_page_state( shmem pages (included tmpfs/GEM pages) )
5125  Available memory size 等于global_zone_page_state( First 128 byte cacheline (assuming 64 bit words) )
5126  Memory used by buffers 等于nr_blockdev_pages()
5127  Total high memory size 等于totalhigh_pages()
5128  Available high memory size 等于nr_free_highpages()
5129  Memory unit size in bytes 等于PAGE_SIZE
调用者
名称描述
kdb_sysinfoMost of this code has been lifted from kernel/timer.c::sys_sysinfo().* I cannot call that code directly from kdb, it has an unconditional* cli()/sti() and calls routines that take locks which can stop the debugger.
do_sysinfodo_sysinfo - fill in sysinfo struct*@info: pointer to buffer to fill
eventpoll_init