函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static int notifier_chain_register(struct notifier_block **nl, struct notifier_block *n)

返回类型:int

参数:

类型参数名称
struct notifier_block **nl
struct notifier_block *n
25  当(( * nl) != NULL)循环
27  WARN(1, "double register detected")
28  返回:0
30  如果priority大于priority退出
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  返回:0
调用者
名称描述
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.