函数逻辑报告 |
Source Code:arch\x86\kernel\setup_percpu.c |
Create Date:2022-07-27 09:25:06 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:SMP体系CPU分配内存
函数原型:void __init setup_per_cpu_areas(void)
返回类型:void
参数:无
174 | 打印信息("NR_CPUS:%d nr_cpumask_bits:%d nr_cpu_ids:%u nr_node_ids:%u\n", CPU数量, nr_cpumask_bits, nr_cpu_ids, nr_node_ids) |
188 | 如果多核内存分配机制不等于PCPU_FC_PAGE则 |
209 | 如果rc小于0则打印警告信息("%s allocator failed (%d), falling back to page size\n", pcpu_fc_names[多核内存分配机制], rc) |
217 | 如果rc小于0则panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns. |
223 | per_cpu_offset(cpu)等于delta加pcpu_unit_offsets[cpu] |
224 | per_cpu(this_cpu_off, cpu)等于per_cpu_offset(cpu) |
225 | per_cpu(cpu_number, cpu)等于cpu |
226 | setup_percpu_segment(cpu) |
248 | per_cpu(Mappings between logical cpu number and node number , cpu)等于early_per_cpu_map(Mappings between logical cpu number and node number , cpu) |
258 | set_cpu_numa_node(cpu, 取得CPU的NUMA节点) |
275 | early_per_cpu_ptr(x86_cpu_to_logical_apicid) = NULL |
297 | sync_initial_page_table() |
名称 | 描述 |
---|---|
start_kernel | 启动内核 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |