函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\show_mem.c Create Date:2022-07-27 07:11:28
Last Modify:2022-05-21 10:09:21 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:show_mem

函数原型:void show_mem(unsigned int filter, nodemask_t *nodemask)

返回类型:void

参数:

类型参数名称
unsigned intfilter
nodemask_t *nodemask
14  total等于0, reserved等于0, highmem等于0
16  printk("Mem-Info:\n")
17  Show free area list (used inside shift_scroll-lock stuff)* We also calculate the percentage fragmentation
22 zoneid小于MAX_NR_ZONES循环
23  zone等于包含了结点中各内存域的数据结构[zoneid]
24  如果非Returns true if a zone has memory 则继续下一循环
27  total加等于内存域中实际上可用的页数目
28  reserved加等于内存域中实际上可用的页数目zone_managed_pages(zone)
30  如果is_highmem_idx(zoneid)则highmem加等于内存域中实际上可用的页数目
35  printk("%lu pages RAM\n", total)
36  printk("%lu pages HighMem/MovableOnly\n", highmem)
37  printk("%lu pages reserved\n", reserved)
39  printk("%lu pages cma reserved\n", totalcma_pages)
42  printk("%lu pages hwpoisoned\n", atomic_long_read( & num_poisoned_pages))
调用者
名称描述
warn_alloc_show_mem
panic_print_sys_info
dump_header