函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memblock.c Create Date:2022-07-27 16:40:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:memblock_reserve

函数原型:int __attribute__((__section__(".meminit.text"))) __attribute__((__cold__)) __attribute__((__no_instrument_function__))memblock_reserve(phys_addr_t base, phys_addr_t size)

返回类型:int

参数:

类型参数名称
phys_addr_tbase
phys_addr_tsize
825  end等于basesize减1
830  返回:memblock_add_range( & reserved, base, size, MAX_NUMNODES, 0)
调用者
名称描述
memblock_alloc_range_nidmemblock_alloc_range_nid - allocate boot memory block*@size: size of memory block to be allocated in bytes*@align: alignment of the region and block's size*@start: the lower bound of the memory region to allocate (phys address)*@end: the upper bound of
reserve_bad_mem
cma_declare_contiguousma_declare_contiguous() - reserve custom contiguous area*@base: Base address of the reserved area optional, use 0 for any*@size: Size of the reserved area (in bytes),*@limit: End address of the reserved memory (optional, 0 for any)
reserve_brk
memblock_x86_reserve_range_setup_data
reserve_crashkernel_low
reserve_crashkernel
reserve_ibft_region
trim_snb_memorySandy Bridge graphics has trouble with certain ranges, exclude* them from allocation.
trim_low_memory_range
setup_arch平台相关启动
e820__memblock_setup
smp_reserve_memory
smp_scan_config
crash_reserve_low_1MWhen the crashkernel option is specified, only use the low* 1M for the real mode trampoline.
setup_bios_corruption_check
allocate_apertureThis code runs before the PCI subsystem is initialized, so justaccess the northbridge directly.
memblock_double_array