Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\show_mem.c Create Date:2022-07-28 06:14:13
Last Modify:2022-05-21 10:09:21 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:show_mem

Proto:void show_mem(unsigned int filter, nodemask_t *nodemask)

Type:void

Parameter:

TypeParameterName
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  When zoneid < MAX_NR_ZONES cycle
23  zone = node_zones[zoneid]
24  If Not Returns true if a zone has memory Then Continue
27  total += present_pages
28  reserved += present_pages - zone_managed_pages(zone)
30  If is_highmem_idx(zoneid) Then highmem += present_pages
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))
Caller
NameDescribe
warn_alloc_show_mem