函数逻辑报告 |
Source Code:arch\x86\kernel\smpboot.c |
Create Date:2022-07-27 09:24:39 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:pu_possible_mask should be static, it cannot change as cpu's* are onlined, or offlined. The reason is per-cpu data-structures* are allocated by some modules at init time, and dont expect to* do this dynamically on cpu arrival/departure.
函数原型:__init void prefill_possible_map(void)
返回类型:void
参数:无
1456 | 如果非num_processors则 |
1457 | 如果boot_cpu_has(Onboard APIC )则 |
1459 | cpu等于hard_smp_processor_id() |
1469 | 如果非num_processors则num_processors等于1 |
1473 | i等于如果setup_max_cpus否则1 |
1474 | 如果setup_possible_cpus恒等于负1则 |
1483 | 否则possible等于setup_possible_cpus |
1489 | 如果possible大于nr_cpu_ids则 |
1490 | 打印警告信息("%d Processors exceeds NR_CPUS limit of %u\n", possible, nr_cpu_ids) |
1492 | possible等于nr_cpu_ids |
1499 | 打印警告信息("%d Processors exceeds max_cpus limit of %u\n", possible, setup_max_cpus) |
1504 | nr_cpu_ids等于possible |
1506 | 打印信息("Allowing %d CPUs, %d hotplug CPUs\n", possible, max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, possible - num_processors, 0)) |
1509 | reset_cpu_possible_mask() |
1511 | 以i小于possible循环set_cpu_possible(i, true) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |