Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static int notifier_call_chain(struct notifier_block **nl, unsigned long val, void *v, int nr_to_call, int *nr_calls)

Type:int

Parameter:

TypeParameterName
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  When nb && nr_to_call cycle
74  next_nb = Dependency order vs. p above. (next)
83  ret = notifier_call(nb, val, v)
85  If nr_calls Then nr_calls++
88  If ret & Don't call further Then Break
90  nb = next_nb
91  nr_to_call--
93  Return ret
Caller
NameDescribe
__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