Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:memblock_cap_memory_range

Proto:void __init memblock_cap_memory_range(phys_addr_t base, phys_addr_t size)

Type:void

Parameter:

TypeParameterName
phys_addr_tbase
phys_addr_tsize
1712  If Not size Then Return
1715  ret = memblock_isolate_range( & memory, base, size, & start_rgn, & end_rgn)
1717  If ret Then Return
1721  When i >= end_rgn cycle If Not memblock_is_nomap( & regions[i]) Then
1723  memblock_remove_region( & memory, i)
1725  When i >= 0 cycle If Not memblock_is_nomap( & regions[i]) Then
1727  memblock_remove_region( & memory, i)
1730  memblock_remove_range( & reserved, 0, base)
1731  memblock_remove_range( & reserved, base + size, PHYS_ADDR_MAX)
Caller
NameDescribe
memblock_mem_limit_remove_map