srcu_notifier_call_chain(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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