srcu_notifier_call_chain(9)
π srcu_notifier_call_chain(9) π
okay bestie, welcome to the Kernel API Manual, section 9 β the main character today is srcu_notifier_call_chain, and she is literally here to call functions in an SRCU notifier chain. π¦β¨
β¨ NAME β¨
srcu_notifier_call_chain β Call functions in an SRCU notifier chain. π
πΈ SYNOPSIS πΈ
hereβs the signature, no cap β keep it exact:
int srcu_notifier_call_chain (struct srcu_notifier_head *nh , unsigned
long val , void *v );
π ARGUMENTS π
nhβ Pointer to head of the SRCU notifier chain. π«Άvalβ Value passed unmodified to notifier function. β¨vβ Pointer passed unmodified to notifier function. π
π₯ DESCRIPTION π₯
Calls each function in a notifier chain in turn. The functions run in a process context, so they are allowed to block. yes bestie, they can block β thatβs the whole point π
If the return value of the notifier can be andβed with NOTIFY_STOP_MASK then srcu_notifier_call_chain will return immediately, with the return value of the notifier function which halted execution. Otherwise the return value is the return value of the last notifier function called. π
so fr fr: if that NOTIFY_STOP_MASK check hits, it bails immediately and gives you back the return value of the notifier that halted execution. otherwise you get the return value of the last notifier function called. iconic behavior, tbh. π₯
π§ SEE ALSO π§
Kernel file ./kernel/notifier.c is the source spot, and the whole notifier fam is right here:
notifier_call_chain(9)notifier_call_chain_robust(9)atomic_notifier_chain_register(9)atomic_notifier_chain_register_unique_prio(9)atomic_notifier_chain_unregister(9)atomic_notifier_call_chain(9)atomic_notifier_call_chain_is_empty(9)blocking_notifier_chain_register(9)blocking_notifier_chain_register_unique_prio(9)blocking_notifier_chain_unregister(9)blocking_notifier_call_chain(9)raw_notifier_chain_register(9)raw_notifier_chain_unregister(9)raw_notifier_call_chain(9)srcu_notifier_chain_register(9)srcu_notifier_chain_unregister(9)srcu_init_notifier_head(9)
mwah π source/version: ./kernel Β· date: October 2026 Β· for srcu_notifier_call_chain(9) β thatβs the whole page, bestie, go read the kernel and slay. ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms