Lines Matching refs:nb
93 int register_reboot_notifier(struct notifier_block *nb) in register_reboot_notifier() argument
95 return blocking_notifier_chain_register(&reboot_notifier_list, nb); in register_reboot_notifier()
108 int unregister_reboot_notifier(struct notifier_block *nb) in unregister_reboot_notifier() argument
110 return blocking_notifier_chain_unregister(&reboot_notifier_list, nb); in unregister_reboot_notifier()
119 int devm_register_reboot_notifier(struct device *dev, struct notifier_block *nb) in devm_register_reboot_notifier() argument
129 ret = register_reboot_notifier(nb); in devm_register_reboot_notifier()
131 *rcnb = nb; in devm_register_reboot_notifier()
185 int register_restart_handler(struct notifier_block *nb) in register_restart_handler() argument
187 return atomic_notifier_chain_register(&restart_handler_list, nb); in register_restart_handler()
200 int unregister_restart_handler(struct notifier_block *nb) in unregister_restart_handler() argument
202 return atomic_notifier_chain_unregister(&restart_handler_list, nb); in unregister_restart_handler()