Lines Matching defs:nb
81 * @nb: Info about notifier function to be called
89 int register_reboot_notifier(struct notifier_block *nb)
91 return blocking_notifier_chain_register(&reboot_notifier_list, nb);
97 * @nb: Hook to be unregistered
104 int unregister_reboot_notifier(struct notifier_block *nb)
106 return blocking_notifier_chain_unregister(&reboot_notifier_list, nb);
115 int devm_register_reboot_notifier(struct device *dev, struct notifier_block *nb)
125 ret = register_reboot_notifier(nb);
127 *rcnb = nb;
146 * @nb: Info about handler function to be called
147 * @nb->priority: Handler priority. Handlers should follow the
181 int register_restart_handler(struct notifier_block *nb)
183 return atomic_notifier_chain_register(&restart_handler_list, nb);
190 * @nb: Hook to be unregistered
196 int unregister_restart_handler(struct notifier_block *nb)
198 return atomic_notifier_chain_unregister(&restart_handler_list, nb);
221 int register_pre_restart_handler(struct notifier_block *nb)
223 return atomic_notifier_chain_register(&pre_restart_handler_list, nb);
227 int unregister_pre_restart_handler(struct notifier_block *nb)
229 return atomic_notifier_chain_unregister(&pre_restart_handler_list, nb);