path: root/kernel/notifier.c
AgeCommit message (Collapse)AuthorFilesLines
2011-10-31kernel: Map most files to use export.h instead of module.hPaul Gortmaker1-1/+1
The changed files were only including linux/module.h for the EXPORT_SYMBOL infrastructure, and nothing else. Revector them onto the isolated export header for faster compile times. Nothing to see here but a whole lot of instances of: -#include <linux/module.h> +#include <linux/export.h> This commit is only changing the kernel dir; next targets will probably be mm, fs, the arch dirs, etc. Signed-off-by: Paul Gortmaker <>
2011-07-26notifiers: sys: move reboot notifiers into reboot.hAmerigo Wang1-31/+0
It is not necessary to share the same notifier.h. This patch already moves register_reboot_notifier() and unregister_reboot_notifier() from kernel/notifier.c to kernel/sys.c. [ make allyesconfig succeed on ppc64] Signed-off-by: WANG Cong <> Cc: David Miller <> Cc: "Rafael J. Wysocki" <> Cc: Greg KH <> Signed-off-by: WANG Cong <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2010-02-25sched: Use lockdep-based checking on rcu_dereference()Paul E. McKenney1-3/+3
Update the rcu_dereference() usages to take advantage of the new lockdep-based checking. Signed-off-by: Paul E. McKenney <> Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: LKML-Reference: <> [ -v2: fix allmodconfig missing symbol export build failure on x86 ] Signed-off-by: Ingo Molnar <>
2009-08-30kprobes: Fix to add __kprobes to notify_dieMasami Hiramatsu1-1/+1
Add __kprobes to notify_die() because do_int3() calls notify_die() instead of atomic_notify_call_chain() which is already marked as __kprobes. Signed-off-by: Masami Hiramatsu <> Acked-by: Ananth N Mavinakayanahalli <> Cc: Ingo Molnar <> LKML-Reference: <20090827172318.8246.53702.stgit@localhost.localdomain> Signed-off-by: Frederic Weisbecker <>
2008-11-24Merge branches 'core/debug', 'core/futexes', 'core/locking', 'core/rcu', ↵Ingo Molnar1-0/+8
'core/signal', 'core/urgent' and 'core/xen' into core/core
2008-10-14ftrace: ignore functions that cannot be kprobe-edIngo Molnar1-1/+1
kprobes already has an extensive list of annotations for functions that should not be instrumented. Add notrace annotations to these functions as well. This is particularly useful for functions called by the NMI path. Signed-off-by: Ingo Molnar <>
2008-09-10debug: add notifier chain debugging, v2Arjan van de Ven1-9/+1
- unbreak ia64 (and powerpc) where function pointers dont point at code but at data (reported by Tony Luck) [ various cleanups ] Signed-off-by: Arjan van de Ven <> Signed-off-by: Ingo Molnar <>
2008-09-10debug: add notifier chain debuggingArjan van de Ven1-0/+16
during some development we suspected a case where we left something in a notifier chain that was from a module that was unloaded already... and that sort of thing is rather hard to track down. This patch adds a very simple sanity check (which isn't all that expensive) to make sure the notifier we're about to call is actually from either the kernel itself of from a still-loaded module, avoiding a hard-to-chase-down crash. Signed-off-by: Arjan van de Ven <> Signed-off-by: Ingo Molnar <>
2008-04-29ipc: re-enable msgmni automatic recomputing msgmni if set to negativeNadia Derbey1-0/+38
The enhancement as asked for by Yasunori: if msgmni is set to a negative value, register it back into the ipcns notifier chain. A new interface has been added to the notification mechanism: notifier_chain_cond_register() registers a notifier block only if not already registered. With that new interface we avoid taking care of the states changes in procfs. Signed-off-by: Nadia Derbey <> Cc: Yasunori Goto <> Cc: Matt Helsley <> Cc: Mingming Cao <> Cc: Pierre Peiffer <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2008-02-06kernel/notifier.c should #include <linux/reboot.h>Adrian Bunk1-0/+1
Every file should include the headers containing the prototypes for its global functions (in this case {,un}register_reboot_notifier()). Signed-off-by: Adrian Bunk <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2007-10-19Add kernel/notifier.cAlexey Dobriyan1-0/+539
There is separate notifier header, but no separate notifier .c file. Extract notifier code out of kernel/sys.c which will remain for misc syscalls I hope. Merge kernel/die_notifier.c into kernel/notifier.c. [ coding-style fixes] Signed-off-by: Alexey Dobriyan <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>