函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\manage.c Create Date:2022-07-27 11:10:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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()

函数原型:int prepare_percpu_nmi(unsigned int irq)

返回类型:int

参数:

类型参数名称
unsigned intirq
2546  ret等于0
2548  WARN_ON(preemptible())
2550  desc等于irq_get_desc_lock(irq, & flags, IRQ_GET_DESC_CHECK_PERCPU)
2552  如果非desc则返回:负EINVAL
2555  如果WARN(!(istate & IRQS_NMI), r conditions "prepare_percpu_nmi called for a non-NMI interrupt: irq %u\n", irq)则
2558  ret等于负EINVAL
2559  转到:out
2562  ret等于irq_nmi_setup(desc)
2563  如果ret
2564  打印错误信息("Failed to setup NMI delivery: irq %u\n", irq)
2565  转到:out
2568  out :
2569  irq_put_desc_unlock(desc, flags)
2570  返回:ret