Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:memblock_search

Proto:static int __attribute__((__section__(".meminit.text"))) __attribute__((__cold__)) __attribute__((__no_instrument_function__))memblock_search(struct memblock_type *type, phys_addr_t addr)

Type:int

Parameter:

TypeParameterName
struct memblock_type *type
phys_addr_taddr
1753  left = 0 , right = cnt
1755  Do
1756  mid = (right + left) / 2
1758  If addr < base Then right = mid
1760  Else if addr >= base + size Then left = mid + 1
1763  Else Return mid
1765  When left < right cycle
1766  Return -1
Caller
NameDescribe
memblock_is_reserved
memblock_is_memory
memblock_is_map_memory
memblock_is_region_memory