raw_notifier_call_chain(9)
π raw_notifier_call_chain(9)
okay so you're in the Kernel API Manual bestie, and today's main character is raw_notifier_call_chain β yes it's a whole mouthful, no we're not changing it, iykyk π«Ά
β¨ NAME β¨
raw_notifier_call_chain β Call functions in a raw notifier chain πΈ
π SYNOPSIS π
int raw_notifier_call_chain (struct raw_notifier_head *nh , unsigned long val , void *v );
π¦ ARGUMENTS π¦
nhβ Pointer to head of the raw notifier chain. it's the entry point fr fr, the head of the whole chain πvalβ Value passed unmodified to notifier function. like, unmodified, do not touch it, it goes straight through βvβ Pointer passed unmodified to notifier function. same deal, pointer goes in, pointer comes out, no edits, periodt π₯
π DESCRIPTION π
Calls each function in a notifier chain in turn. like a little conga line of function calls π
π¨ the functions run in an undefined context. and all locking must be provided by the caller. not us, bestie β you. we're not doing that for you π
Now, the return value tea β:
- If the return value of the notifier can be and'ed with
NOTIFY_STOP_MASKthenraw_notifier_call_chainwill return immediately, with the return value of the notifier function which halted execution. like, that function said "we stop here" and we literally stopped π - Otherwise the return value is the return value of the last notifier function called. the final girl, the one still standing π
π SEE ALSO π
Kernel file ./kernel/notifier.c and all these gorgeous icons π
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)srcu_notifier_chain_register(9)srcu_notifier_chain_unregister(9)srcu_notifier_call_chain(9)srcu_init_notifier_head(9)
okay that's the whole thing, go forth and notify responsibly π this lil page lives in ./kernel, version date October 2026, and it's signed raw_notifier_call_chain(9) β mwah, slay, bye π§β¨
π¦ 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