raw_notifier_call_chain(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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_MASK then raw_notifier_call_chain will 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 πŸ‘‘


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