• Home
  • Raw
  • Download

Lines Matching refs:nb

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()
208 int unregister_restart_handler(struct notifier_block *nb) in unregister_restart_handler() argument
210 return atomic_notifier_chain_unregister(&restart_handler_list, nb); in unregister_restart_handler()
318 static int sys_off_notify(struct notifier_block *nb, in sys_off_notify() argument
324 handler = container_of(nb, struct sys_off_handler, nb); in sys_off_notify()
427 handler->nb.notifier_call = sys_off_notify; in register_sys_off_handler()
428 handler->nb.priority = priority; in register_sys_off_handler()
436 &handler->nb); in register_sys_off_handler()
439 &handler->nb); in register_sys_off_handler()
443 &handler->nb); in register_sys_off_handler()
446 &handler->nb); in register_sys_off_handler()
473 &handler->nb); in unregister_sys_off_handler()
476 &handler->nb); in unregister_sys_off_handler()