Home
last modified time | relevance | path

Searched refs:nb (Results 1 – 17 of 17) sorted by relevance

/kernel/
Dreboot.c53 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 …]
Dnotifier.c73 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 …]
Dcpu_pm.c70 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()
Dtracepoint.c589 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()
Dstatic_call_inline.c421 static int static_call_module_notify(struct notifier_block *nb, in static_call_module_notify() argument
Dcpu.c1685 cpu_hotplug_pm_callback(struct notifier_block *nb, in cpu_hotplug_pm_callback() argument
Dkprobes.c2628 static int kprobes_module_callback(struct notifier_block *nb, in kprobes_module_callback() argument
/kernel/power/
Dmain.c74 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/
Ddebug.c842 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/
Dbase.c103 static int gcov_module_notifier(struct notifier_block *nb, unsigned long event, in gcov_module_notifier() argument
/kernel/printk/
Dindex.c151 static int pi_module_notify(struct notifier_block *nb, unsigned long op, in pi_module_notify() argument
/kernel/time/
Dtimekeeping.c679 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/
Dmain.c134 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/
Dtrace_probe.c528 #define BYTES_TO_BITS(nb) ((BITS_PER_LONG * (nb)) / sizeof(long)) argument
Dtrace_kprobe.c674 static int trace_kprobe_module_callback(struct notifier_block *nb, in trace_kprobe_module_callback() argument
Dbpf_trace.c2414 static int bpf_event_notify(struct notifier_block *nb, unsigned long op, in bpf_event_notify() argument
/kernel/bpf/
Dbtf.c7108 static int btf_module_notify(struct notifier_block *nb, unsigned long op, in btf_module_notify() argument