函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:memblock_alloc

函数原型:static inline void *__init memblock_alloc(phys_addr_t size, phys_addr_t align)

返回类型:void

参数:

类型参数名称
phys_addr_tsize
phys_addr_talign
373  返回:memblock_alloc_try_nid(size, align, We are using top down, so it is safe to use 0 here , MEMBLOCK_ALLOC_ACCESSIBLE, NUMA_NO_NODE)
调用者
名称描述
e820__reserve_resources
ioapic_setup_resources
io_apic_init_mappings
__register_nosave_regiongister_nosave_region - Register a region of unsaveable memory.* Register a range of page frames the contents of which should not be saved* during hibernation (to be used in the early initialization code).
setup_log_buf日志缓冲设置
swiotlb_init_with_tbl
setup_command_line保存未改变的comand_line到字符数组static_command_line中
pcpu_alloc_first_chunkpcpu_alloc_first_chunk - creates chunks that serve the first chunk*@tmp_addr: the start of the region served*@map_size: size of the region served* This is responsible for creating the chunks that serve the first chunk
pcpu_alloc_alloc_infopcpu_alloc_alloc_info - allocate percpu allocation info*@nr_groups: the number of groups*@nr_units: the number of units* Allocate ai which is large enough for @nr_groups groups containing*@nr_units units
pcpu_setup_first_chunkpcpu_setup_first_chunk - initialize the first percpu chunk*@ai: pcpu_alloc_info describing how to percpu area is shaped*@base_addr: mapped address* Initialize the first percpu chunk which contains the kernel static* percpu area
alloc_large_system_hashallocate a large system hash table from bootmem* - it is assumed that the hash table must contain an exact power-of-2* quantity of entries* - limit is the number of hash buckets, not the total allocation size