/kernel/ |
D | reboot.c | 53 struct notifier_block nb; member 101 int register_reboot_notifier(struct notifier_block *nb) in register_reboot_notifier() argument 103 return blocking_notifier_chain_register(&reboot_notifier_list, nb); in register_reboot_notifier() 116 int unregister_reboot_notifier(struct notifier_block *nb) in unregister_reboot_notifier() argument 118 return blocking_notifier_chain_unregister(&reboot_notifier_list, nb); in unregister_reboot_notifier() 127 int devm_register_reboot_notifier(struct device *dev, struct notifier_block *nb) in devm_register_reboot_notifier() argument 137 ret = register_reboot_notifier(nb); in devm_register_reboot_notifier() 139 *rcnb = nb; in devm_register_reboot_notifier() 193 int register_restart_handler(struct notifier_block *nb) in register_restart_handler() argument 195 return atomic_notifier_chain_register(&restart_handler_list, nb); in register_restart_handler() [all …]
|
D | notifier.c | 73 struct notifier_block *nb, *next_nb; in notifier_call_chain() local 75 nb = rcu_dereference_raw(*nl); in notifier_call_chain() 77 while (nb && nr_to_call) { in notifier_call_chain() 78 next_nb = rcu_dereference_raw(nb->next); in notifier_call_chain() 81 if (unlikely(!func_ptr_is_kernel_text(nb->notifier_call))) { in notifier_call_chain() 83 nb = next_nb; in notifier_call_chain() 87 ret = nb->notifier_call(nb, val, v); in notifier_call_chain() 94 nb = next_nb; in notifier_call_chain() 597 int register_die_notifier(struct notifier_block *nb) in register_die_notifier() argument 599 return atomic_notifier_chain_register(&die_chain, nb); in register_die_notifier() [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 | 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 | 421 static int static_call_module_notify(struct notifier_block *nb, in static_call_module_notify() argument
|
D | cpu.c | 1685 cpu_hotplug_pm_callback(struct notifier_block *nb, in cpu_hotplug_pm_callback() argument
|
D | kprobes.c | 2628 static int kprobes_module_callback(struct notifier_block *nb, in kprobes_module_callback() argument
|
/kernel/power/ |
D | main.c | 74 int register_pm_notifier(struct notifier_block *nb) in register_pm_notifier() argument 76 return blocking_notifier_chain_register(&pm_chain_head, nb); in register_pm_notifier() 80 int unregister_pm_notifier(struct notifier_block *nb) in unregister_pm_notifier() argument 82 return blocking_notifier_chain_unregister(&pm_chain_head, nb); in unregister_pm_notifier()
|
/kernel/dma/ |
D | debug.c | 842 static int dma_debug_device_change(struct notifier_block *nb, unsigned long action, void *data) in dma_debug_device_change() argument 874 struct notifier_block *nb; in dma_debug_add_bus() local 879 nb = kzalloc(sizeof(struct notifier_block), GFP_KERNEL); in dma_debug_add_bus() 880 if (nb == NULL) { in dma_debug_add_bus() 885 nb->notifier_call = dma_debug_device_change; in dma_debug_add_bus() 887 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 | 134 int register_module_notifier(struct notifier_block *nb) in register_module_notifier() argument 136 return blocking_notifier_chain_register(&module_notify_list, nb); in register_module_notifier() 140 int unregister_module_notifier(struct notifier_block *nb) in unregister_module_notifier() argument 142 return blocking_notifier_chain_unregister(&module_notify_list, nb); in unregister_module_notifier()
|
/kernel/trace/ |
D | trace_probe.c | 528 #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 | 2414 static int bpf_event_notify(struct notifier_block *nb, unsigned long op, in bpf_event_notify() argument
|
/kernel/bpf/ |
D | btf.c | 7108 static int btf_module_notify(struct notifier_block *nb, unsigned long op, in btf_module_notify() argument
|