Home
last modified time | relevance | path

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

/kernel/
Dreboot.c55 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 …]
Dnotifier.c78 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 …]
Dcpu_pm.c61 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()
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.c432 static int static_call_module_notify(struct notifier_block *nb, in static_call_module_notify() argument
Dcrash_core.c873 static int crash_memhp_notifier(struct notifier_block *nb, unsigned long val, void *v) in crash_memhp_notifier() argument
Dcpu.c2042 cpu_hotplug_pm_callback(struct notifier_block *nb, in cpu_hotplug_pm_callback() argument
Dkprobes.c2639 static int kprobes_module_callback(struct notifier_block *nb, in kprobes_module_callback() argument
/kernel/power/
Dmain.c102 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/
Ddebug.c849 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/
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.c135 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/
Dtrace_probe.c1060 #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.c2455 static int bpf_event_notify(struct notifier_block *nb, unsigned long op, in bpf_event_notify() argument
/kernel/bpf/
Dbtf.c7353 static int btf_module_notify(struct notifier_block *nb, unsigned long op, in btf_module_notify() argument