Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\manage.c Create Date:2022-07-28 10:10:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:prepare_percpu_nmi - performs CPU local setup for NMI delivery*@irq: Interrupt line to prepare for NMI delivery* This call prepares an interrupt line to deliver NMI on the current CPU,* before that interrupt line gets enabled with enable_percpu_nmi()

Proto:int prepare_percpu_nmi(unsigned int irq)

Type:int

Parameter:

TypeParameterName
unsigned intirq
2546  ret = 0
2548  WARN_ON(preemptible())
2550  desc = irq_get_desc_lock(irq, & flags, IRQ_GET_DESC_CHECK_PERCPU)
2552  If Not desc Then Return -EINVAL
2555  If WARN(!(istate & IRQS_NMI), r conditions "prepare_percpu_nmi called for a non-NMI interrupt: irq %u\n", irq) Then
2558  ret = -EINVAL
2559  Go to out
2562  ret = irq_nmi_setup(desc)
2563  If ret Then
2564  pr_err("Failed to setup NMI delivery: irq %u\n", irq)
2565  Go to out
2568  out :
2569  irq_put_desc_unlock(desc, flags)
2570  Return ret