/kernel/ |
D | notifier.c | 69 struct notifier_block *nb, *next_nb; in notifier_call_chain() local 71 nb = rcu_dereference_raw(*nl); in notifier_call_chain() 73 while (nb && nr_to_call) { in notifier_call_chain() 74 next_nb = rcu_dereference_raw(nb->next); in notifier_call_chain() 77 if (unlikely(!func_ptr_is_kernel_text(nb->notifier_call))) { in notifier_call_chain() 79 nb = next_nb; in notifier_call_chain() 83 ret = nb->notifier_call(nb, val, v); in notifier_call_chain() 90 nb = next_nb; in notifier_call_chain() 552 int register_die_notifier(struct notifier_block *nb) in register_die_notifier() argument 554 return atomic_notifier_chain_register(&die_chain, nb); in register_die_notifier() [all …]
|
D | reboot.c | 92 int register_reboot_notifier(struct notifier_block *nb) in register_reboot_notifier() argument 94 return blocking_notifier_chain_register(&reboot_notifier_list, nb); in register_reboot_notifier() 107 int unregister_reboot_notifier(struct notifier_block *nb) in unregister_reboot_notifier() argument 109 return blocking_notifier_chain_unregister(&reboot_notifier_list, nb); in unregister_reboot_notifier() 118 int devm_register_reboot_notifier(struct device *dev, struct notifier_block *nb) in devm_register_reboot_notifier() argument 128 ret = register_reboot_notifier(nb); in devm_register_reboot_notifier() 130 *rcnb = nb; in devm_register_reboot_notifier() 184 int register_restart_handler(struct notifier_block *nb) in register_restart_handler() argument 186 return atomic_notifier_chain_register(&restart_handler_list, nb); in register_restart_handler() 199 int unregister_restart_handler(struct notifier_block *nb) in unregister_restart_handler() argument [all …]
|
D | cpu_pm.c | 70 int cpu_pm_register_notifier(struct notifier_block *nb) in cpu_pm_register_notifier() argument 76 ret = raw_notifier_chain_register(&cpu_pm_notifier.chain, nb); in cpu_pm_register_notifier() 90 int cpu_pm_unregister_notifier(struct notifier_block *nb) in cpu_pm_unregister_notifier() argument 96 ret = raw_notifier_chain_unregister(&cpu_pm_notifier.chain, nb); in cpu_pm_unregister_notifier()
|
D | tracepoint.c | 609 int register_tracepoint_module_notifier(struct notifier_block *nb) in register_tracepoint_module_notifier() argument 615 ret = blocking_notifier_chain_register(&tracepoint_notify_list, nb); in register_tracepoint_module_notifier() 619 (void) nb->notifier_call(nb, MODULE_STATE_COMING, tp_mod); in register_tracepoint_module_notifier() 633 int unregister_tracepoint_module_notifier(struct notifier_block *nb) in unregister_tracepoint_module_notifier() argument 639 ret = blocking_notifier_chain_unregister(&tracepoint_notify_list, nb); in unregister_tracepoint_module_notifier() 643 (void) nb->notifier_call(nb, MODULE_STATE_GOING, tp_mod); in unregister_tracepoint_module_notifier()
|
D | static_call.c | 421 static int static_call_module_notify(struct notifier_block *nb, in static_call_module_notify() argument
|
D | module.c | 309 int register_module_notifier(struct notifier_block *nb) in register_module_notifier() argument 311 return blocking_notifier_chain_register(&module_notify_list, nb); in register_module_notifier() 315 int unregister_module_notifier(struct notifier_block *nb) in unregister_module_notifier() argument 317 return blocking_notifier_chain_unregister(&module_notify_list, nb); in unregister_module_notifier()
|
D | cpu.c | 1825 cpu_hotplug_pm_callback(struct notifier_block *nb, in cpu_hotplug_pm_callback() argument
|
D | kprobes.c | 2539 static int kprobes_module_callback(struct notifier_block *nb, in kprobes_module_callback() argument
|
/kernel/power/ |
D | main.c | 71 int register_pm_notifier(struct notifier_block *nb) in register_pm_notifier() argument 73 return blocking_notifier_chain_register(&pm_chain_head, nb); in register_pm_notifier() 77 int unregister_pm_notifier(struct notifier_block *nb) in unregister_pm_notifier() argument 79 return blocking_notifier_chain_unregister(&pm_chain_head, nb); in unregister_pm_notifier()
|
/kernel/dma/ |
D | debug.c | 845 static int dma_debug_device_change(struct notifier_block *nb, unsigned long action, void *data) in dma_debug_device_change() argument 877 struct notifier_block *nb; in dma_debug_add_bus() local 882 nb = kzalloc(sizeof(struct notifier_block), GFP_KERNEL); in dma_debug_add_bus() 883 if (nb == NULL) { in dma_debug_add_bus() 888 nb->notifier_call = dma_debug_device_change; in dma_debug_add_bus() 890 bus_register_notifier(bus, nb); in dma_debug_add_bus()
|
/kernel/gcov/ |
D | base.c | 54 static int gcov_module_notifier(struct notifier_block *nb, unsigned long event, in gcov_module_notifier() argument
|
/kernel/time/ |
D | timekeeping.c | 660 int pvclock_gtod_register_notifier(struct notifier_block *nb) in pvclock_gtod_register_notifier() argument 667 ret = raw_notifier_chain_register(&pvclock_gtod_chain, nb); in pvclock_gtod_register_notifier() 679 int pvclock_gtod_unregister_notifier(struct notifier_block *nb) in pvclock_gtod_unregister_notifier() argument 685 ret = raw_notifier_chain_unregister(&pvclock_gtod_chain, nb); in pvclock_gtod_unregister_notifier()
|
/kernel/trace/ |
D | trace_probe.c | 505 #define BYTES_TO_BITS(nb) ((BITS_PER_LONG * (nb)) / sizeof(long)) argument
|
D | trace_kprobe.c | 676 static int trace_kprobe_module_callback(struct notifier_block *nb, in trace_kprobe_module_callback() argument
|
D | bpf_trace.c | 2200 static int bpf_event_notify(struct notifier_block *nb, unsigned long op, in bpf_event_notify() argument
|