Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Show free area list (used inside shift_scroll-lock stuff)* We also calculate the percentage fragmentation

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

Type:void

Parameter:

TypeParameterName
unsigned intfilter
nodemask_t *nodemask
5227  free_pcp = 0
5232  do nothing (zone)
5233  If Determine whether the node should be displayed or not, depending on whether* SHOW_MEM_FILTER_NODES was passed to show_free_areas(). Then Continue
5236  for_each_online_cpu(cpu)
5237  free_pcp += ({
5237  ({
5237  Do
5237  const void * __vpp_verify = NULL
5237  When 0 cycle
5237  pageset
5237  })
5237  })->pcp.count
5240  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
5267  If Determine whether the node should be displayed or not, depending on whether* SHOW_MEM_FILTER_NODES was passed to show_free_areas(). Then Continue
5270  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
5315  do nothing (zone)
5318  If Determine whether the node should be displayed or not, depending on whether* SHOW_MEM_FILTER_NODES was passed to show_free_areas(). Then Continue
5321  free_pcp = 0
5322  for_each_online_cpu(cpu)
5323  free_pcp += ({
5323  ({
5323  Do
5323  const void * __vpp_verify = NULL
5323  When 0 cycle
5323  pageset
5323  })
5323  })->pcp.count
5325  show_node(zone)
5326  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
5370  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
5371  When i < MAX_NR_ZONES cycle printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
5373  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
5376  do nothing (zone)
5378  total = 0
5381  If Determine whether the node should be displayed or not, depending on whether* SHOW_MEM_FILTER_NODES was passed to show_free_areas(). Then Continue
5383  show_node(zone)
5384  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
5386  spin_lock_irqsave( & Primarily protects free_area , flags)
5391  nr[order] = nr_free
5392  total += nr[order] << order
5394  types[order] = 0
5395  When type < MIGRATE_TYPES cycle
5396  If Not free_area_empty(area, type) Then types[order] |= 1 << type
5400  spin_unlock_irqrestore( & Primarily protects free_area , flags)
5407  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
5410  hugetlb_show_meminfo()
5412  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
5414  show_swap_cache_info()
Caller
NameDescribe
do_mmaphandle mapping creation for uClinux
show_mem
do_mmap_privateset up a private mapping or an anonymous shared mapping