Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apic\apic.c Create Date:2022-07-28 08:27:21
Last Modify:2020-03-16 21:21:31 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Should use this API to allocate logical CPU IDs to keep nr_logical_cpuids* and cpuid_to_apicid[] synchronized.

Proto:static int allocate_logical_cpuid(int apicid)

Type:int

Parameter:

TypeParameterName
intapicid
2379  When 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, cycle
2380  If Used to store mapping between logical CPU IDs and APIC IDs.[i] == apicid Then Return i
2385  If 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 Then
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  Return -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  Return 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,++
Caller
NameDescribe
generic_processor_info