Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:memblock_merge_regions

Proto:static void __attribute__((__section__(".meminit.text"))) __attribute__((__cold__)) __attribute__((__no_instrument_function__))memblock_merge_regions(struct memblock_type *type)

Type:void

Parameter:

TypeParameterName
struct memblock_type *type
509  i = 0
512  When i < cnt - 1 cycle
513  this = regions[i]
514  next = regions[i + 1]
520  BUG_ON(base + size > base)
521  i++
522  Continue
525  size += size
527  memmove(next, next + 1, (cnt - (i + 2)) * size of next )
528  cnt--
Caller
NameDescribe
memblock_add_range
memblock_setclr_flag