Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\nmi.c Create Date:2022-07-28 07:35:12
Last Modify:2022-05-22 06:29:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__register_nmi_handler

Proto:int __register_nmi_handler(unsigned int type, struct nmiaction *action)

Type:int

Parameter:

TypeParameterName
unsigned inttype
struct nmiaction *action
161  desc = nmi_to_desc(type)
164  If Not handler Then Return -EINVAL
167  raw_spin_lock_irqsave( & lock, flags)
173  WARN_ON_ONCE(type == NMI_SERR && !list_empty - tests whether a list is empty*@head: the list to test.)
174  WARN_ON_ONCE(type == NMI_IO_CHECK && !list_empty - tests whether a list is empty*@head: the list to test.)
180  If flags & NMI_FLAG_FIRST Then list_add_rcu - add a new entry to rcu-protected list*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head
182  Else list_add_tail_rcu - add a new entry to rcu-protected list*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head
185  raw_spin_unlock_irqrestore( & lock, flags)
186  Return 0