函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称: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()
1461  打印警告信息("Boot CPU (id %d) not listed by BIOS\n", cpu)
1469  如果非num_processorsnum_processors等于1
1473  i等于如果setup_max_cpus否则1
1474  如果setup_possible_cpus恒等于负1则
1475  possible等于num_processors
1480  如果possible大于ipossible等于i
1483  否则possible等于setup_possible_cpus
1486  al number of cpus in this system (may exceed NR_CPUS) 等于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 + disabled_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
1498  如果possible大于i
1499  打印警告信息("%d Processors exceeds max_cpus limit of %u\n", possible, setup_max_cpus)
1501  possible等于i
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)