Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:si_meminfo

Proto:void si_meminfo(struct sysinfo *val)

Type:void

Parameter:

TypeParameterName
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
Caller
NameDescribe
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.