函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:er_call_chain - Informs the registered notifiers about an event.*@nl: Pointer to head of the blocking notifier chain*@val: Value passed unmodified to notifier function*@v: Pointer passed unmodified to notifier function

函数原型:static int notifier_call_chain(struct notifier_block **nl, unsigned long val, void *v, int nr_to_call, int *nr_calls)

返回类型:int

参数:

类型参数名称
struct notifier_block **nl
unsigned longval
void *v
intnr_to_call
int *nr_calls
68  ret等于Don't care
71  nb等于Dependency order vs. p above. ( * nl)
73 nbnr_to_call循环
74  next_nb等于Dependency order vs. p above. (next)
83  ret等于notifier_call(nb, val, v)
85  如果nr_callsnr_calls自加
88  如果ret按位与Don't call further 退出
90  nb等于next_nb
91  nr_to_call自减
93  返回:ret
调用者
名称描述
__atomic_notifier_call_chain__atomic_notifier_call_chain - Call functions in an atomic notifier chain*@nh: Pointer to head of the atomic notifier chain*@val: Value passed unmodified to notifier function*@v: Pointer passed unmodified to notifier function
__blocking_notifier_call_chain__blocking_notifier_call_chain - Call functions in a blocking notifier chain*@nh: Pointer to head of the blocking notifier chain*@val: Value passed unmodified to notifier function*@v: Pointer passed unmodified to notifier function
__raw_notifier_call_chain__raw_notifier_call_chain - Call functions in a raw notifier chain*@nh: Pointer to head of the raw notifier chain*@val: Value passed unmodified to notifier function*@v: Pointer passed unmodified to notifier function