Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:memblock_insert_region

Proto:static void __attribute__((__section__(".meminit.text"))) __attribute__((__cold__)) __attribute__((__no_instrument_function__))memblock_insert_region(struct memblock_type *type, int idx, phys_addr_t base, phys_addr_t size, int nid, enum memblock_flags flags)

Type:void

Parameter:

TypeParameterName
struct memblock_type *type
intidx
phys_addr_tbase
phys_addr_tsize
intnid
enum memblock_flagsflags
550  rgn = regions[idx]
552  BUG_ON(cnt >= max)
553  memmove(rgn + 1, rgn, (cnt - idx) * size of rgn )
554  base = base
555  size = size
556  flags = flags
557  memblock_set_region_node(rgn, nid)
558  cnt++
559  total_size += size
Caller
NameDescribe
memblock_add_range
memblock_isolate_range