Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apic\apic_numachip.c Create Date:2022-07-28 08:31:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:numachip_send_IPI_one

Proto:static void numachip_send_IPI_one(int cpu, int vector)

Type:void

Parameter:

TypeParameterName
intcpu
intvector
96  apicid = per_cpu(Map cpu index to physical APIC ID, cpu)
99  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
100  local_apicid = Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(Map cpu index to physical APIC ID)
103  If Not ((apicid ^ local_apicid) >> NUMACHIP_LAPIC_BITS) Then
106  local_irq_save(flags)
107  This is used to send an IPI with no shorthand notation (the destination is* specified in bits 56 to 63 of the ICR).
109  local_irq_restore(flags)
110  preempt_enable()
111  Return
113  preempt_enable()
115  dmode = If vector == Linux IRQ vector layout Then APIC_DM_NMI Else APIC_DM_FIXED
116  numachip_apic_icr_write(apicid, dmode | vector)
Caller
NameDescribe
numachip_send_IPI_mask
numachip_send_IPI_mask_allbutself
numachip_send_IPI_allbutself