/kernel/ |
D | reboot.c | 55 struct notifier_block nb; member 103 int register_reboot_notifier(struct notifier_block *nb) in register_reboot_notifier() argument 105 return blocking_notifier_chain_register(&reboot_notifier_list, nb); in register_reboot_notifier() 118 int unregister_reboot_notifier(struct notifier_block *nb) in unregister_reboot_notifier() argument 120 return blocking_notifier_chain_unregister(&reboot_notifier_list, nb); in unregister_reboot_notifier() 129 int devm_register_reboot_notifier(struct device *dev, struct notifier_block *nb) in devm_register_reboot_notifier() argument 139 ret = register_reboot_notifier(nb); in devm_register_reboot_notifier() 141 *rcnb = nb; in devm_register_reboot_notifier() 195 int register_restart_handler(struct notifier_block *nb) in register_restart_handler() argument 197 return atomic_notifier_chain_register(&restart_handler_list, nb); in register_restart_handler() [all …]
|
D | notifier.c | 78 struct notifier_block *nb, *next_nb; in notifier_call_chain() local 80 nb = rcu_dereference_raw(*nl); in notifier_call_chain() 82 while (nb && nr_to_call) { in notifier_call_chain() 83 next_nb = rcu_dereference_raw(nb->next); in notifier_call_chain() 86 if (unlikely(!func_ptr_is_kernel_text(nb->notifier_call))) { in notifier_call_chain() 88 nb = next_nb; in notifier_call_chain() 92 trace_notifier_run((void *)nb->notifier_call); in notifier_call_chain() 93 ret = nb->notifier_call(nb, val, v); in notifier_call_chain() 100 nb = next_nb; in notifier_call_chain() 600 int register_die_notifier(struct notifier_block *nb) in register_die_notifier() argument [all …]
|
D | cpu_pm.c | 61 int cpu_pm_register_notifier(struct notifier_block *nb) in cpu_pm_register_notifier() argument 67 ret = raw_notifier_chain_register(&cpu_pm_notifier.chain, nb); in cpu_pm_register_notifier() 81 int cpu_pm_unregister_notifier(struct notifier_block *nb) in cpu_pm_unregister_notifier() argument 87 ret = raw_notifier_chain_unregister(&cpu_pm_notifier.chain, nb); in cpu_pm_unregister_notifier()
|
D | tracepoint.c | 589 int register_tracepoint_module_notifier(struct notifier_block *nb) in register_tracepoint_module_notifier() argument 595 ret = blocking_notifier_chain_register(&tracepoint_notify_list, nb); in register_tracepoint_module_notifier() 599 (void) nb->notifier_call(nb, MODULE_STATE_COMING, tp_mod); in register_tracepoint_module_notifier() 613 int unregister_tracepoint_module_notifier(struct notifier_block *nb) in unregister_tracepoint_module_notifier() argument 619 ret = blocking_notifier_chain_unregister(&tracepoint_notify_list, nb); in unregister_tracepoint_module_notifier() 623 (void) nb->notifier_call(nb, MODULE_STATE_GOING, tp_mod); in unregister_tracepoint_module_notifier()
|
D | static_call_inline.c | 432 static int static_call_module_notify(struct notifier_block *nb, in static_call_module_notify() argument
|
D | crash_core.c | 873 static int crash_memhp_notifier(struct notifier_block *nb, unsigned long val, void *v) in crash_memhp_notifier() argument
|
D | cpu.c | 2042 cpu_hotplug_pm_callback(struct notifier_block *nb, in cpu_hotplug_pm_callback() argument
|
D | kprobes.c | 2639 static int kprobes_module_callback(struct notifier_block *nb, in kprobes_module_callback() argument
|
/kernel/power/ |
D | main.c | 102 int register_pm_notifier(struct notifier_block *nb) in register_pm_notifier() argument 104 return blocking_notifier_chain_register(&pm_chain_head, nb); in register_pm_notifier() 108 int unregister_pm_notifier(struct notifier_block *nb) in unregister_pm_notifier() argument 110 return blocking_notifier_chain_unregister(&pm_chain_head, nb); in unregister_pm_notifier()
|
/kernel/dma/ |
D | debug.c | 849 static int dma_debug_device_change(struct notifier_block *nb, unsigned long action, void *data) in dma_debug_device_change() argument 881 struct notifier_block *nb; in dma_debug_add_bus() local 886 nb = kzalloc(sizeof(struct notifier_block), GFP_KERNEL); in dma_debug_add_bus() 887 if (nb == NULL) { in dma_debug_add_bus() 892 nb->notifier_call = dma_debug_device_change; in dma_debug_add_bus() 894 bus_register_notifier(bus, nb); in dma_debug_add_bus()
|
/kernel/gcov/ |
D | base.c | 103 static int gcov_module_notifier(struct notifier_block *nb, unsigned long event, in gcov_module_notifier() argument
|
/kernel/printk/ |
D | index.c | 151 static int pi_module_notify(struct notifier_block *nb, unsigned long op, in pi_module_notify() argument
|
/kernel/time/ |
D | timekeeping.c | 679 int pvclock_gtod_register_notifier(struct notifier_block *nb) in pvclock_gtod_register_notifier() argument 686 ret = raw_notifier_chain_register(&pvclock_gtod_chain, nb); in pvclock_gtod_register_notifier() 699 int pvclock_gtod_unregister_notifier(struct notifier_block *nb) in pvclock_gtod_unregister_notifier() argument 705 ret = raw_notifier_chain_unregister(&pvclock_gtod_chain, nb); in pvclock_gtod_unregister_notifier()
|
/kernel/module/ |
D | main.c | 135 int register_module_notifier(struct notifier_block *nb) in register_module_notifier() argument 137 return blocking_notifier_chain_register(&module_notify_list, nb); in register_module_notifier() 141 int unregister_module_notifier(struct notifier_block *nb) in unregister_module_notifier() argument 143 return blocking_notifier_chain_unregister(&module_notify_list, nb); in unregister_module_notifier()
|
/kernel/trace/ |
D | trace_probe.c | 1060 #define BYTES_TO_BITS(nb) ((BITS_PER_LONG * (nb)) / sizeof(long)) argument
|
D | trace_kprobe.c | 674 static int trace_kprobe_module_callback(struct notifier_block *nb, in trace_kprobe_module_callback() argument
|
D | bpf_trace.c | 2455 static int bpf_event_notify(struct notifier_block *nb, unsigned long op, in bpf_event_notify() argument
|
/kernel/bpf/ |
D | btf.c | 7353 static int btf_module_notify(struct notifier_block *nb, unsigned long op, in btf_module_notify() argument
|