函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apic\apic.c Create Date:2022-07-27 09:27:03
Last Modify:2020-03-16 21:21:31 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Should use this API to allocate logical CPU IDs to keep nr_logical_cpuids* and cpuid_to_apicid[] synchronized.

函数原型:static int allocate_logical_cpuid(int apicid)

返回类型:int

参数:

类型参数名称
intapicid
2379 i小于The number of allocated logical CPU IDs. Since logical CPU IDs are allocated* contiguously, it equals to current allocated max logical CPU ID plus 1.* All allocated CPU IDs should be in the [0, nr_logical_cpuids) range,循环
2380  如果Used to store mapping between logical CPU IDs and APIC IDs.[i]恒等于apicid则返回:i
2385  如果The number of allocated logical CPU IDs. Since logical CPU IDs are allocated* contiguously, it equals to current allocated max logical CPU ID plus 1.* All allocated CPU IDs should be in the [0, nr_logical_cpuids) range,大于等于nr_cpu_ids
2386  WARN_ONCE(1, "APIC: NR_CPUS/possible_cpus limit of %u reached. Processor %d/0x%x and the rest are ignored.\n", nr_cpu_ids, The number of allocated logical CPU IDs. Since logical CPU IDs are allocated* contiguously, it equals to current allocated max logical CPU ID plus 1.* All allocated CPU IDs should be in the [0, nr_logical_cpuids) range,, apicid)
2389  返回:负EINVAL
2392  Used to store mapping between logical CPU IDs and APIC IDs.[The number of allocated logical CPU IDs. Since logical CPU IDs are allocated* contiguously, it equals to current allocated max logical CPU ID plus 1.* All allocated CPU IDs should be in the [0, nr_logical_cpuids) range,]等于apicid
2393  返回:The number of allocated logical CPU IDs. Since logical CPU IDs are allocated* contiguously, it equals to current allocated max logical CPU ID plus 1.* All allocated CPU IDs should be in the [0, nr_logical_cpuids) range,自加
调用者
名称描述
generic_processor_info