函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\nmi.c Create Date:2022-07-27 08:34:36
Last Modify:2022-05-22 06:29:32 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__register_nmi_handler

函数原型:int __register_nmi_handler(unsigned int type, struct nmiaction *action)

返回类型:int

参数:

类型参数名称
unsigned inttype
struct nmiaction *action
161  desc等于nmi_to_desc(type)
164  如果非handler则返回:负EINVAL
167  raw_spin_lock_irqsave( & lock, flags)
173  WARN_ON_ONCE(type == NMI_SERR && !链表为空)
174  WARN_ON_ONCE(type == NMI_IO_CHECK && !链表为空)
180  如果flags按位与NMI_FLAG_FIRST添加RCU保护项
182  否则添加RCU链表项
185  raw_spin_unlock_irqrestore( & lock, flags)
186  返回:0