Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Notifier chain core routines. The exported routines below* are layered on top of these, with appropriate locking added.

Proto:static int notifier_chain_register(struct notifier_block **nl, struct notifier_block *n)

Type:int

Parameter:

TypeParameterName
struct notifier_block **nl
struct notifier_block *n
25  When (( * nl) != NULL) cycle
27  WARN(1, "double register detected")
28  Return 0
30  If priority > priority Then Break
32  nl = &next
34  next = nl
35  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization( * nl, n)
36  Return 0
Caller
NameDescribe
atomic_notifier_chain_registeratomic_notifier_chain_register - Add notifier to an atomic notifier chain*@nh: Pointer to head of the atomic notifier chain*@n: New entry in notifier chain* Adds a notifier to an atomic notifier chain.* Currently always returns zero.
blocking_notifier_chain_registerlocking_notifier_chain_register - Add notifier to a blocking notifier chain*@nh: Pointer to head of the blocking notifier chain*@n: New entry in notifier chain* Adds a notifier to a blocking notifier chain.* Must be called in process context.
raw_notifier_chain_registeraw_notifier_chain_register - Add notifier to a raw notifier chain*@nh: Pointer to head of the raw notifier chain*@n: New entry in notifier chain* Adds a notifier to a raw notifier chain.* All locking must be provided by the caller.