/** * atomic_notifier_chain_unregister - Remove notifier from an atomic notifier chain * @nh: Pointer to head of the atomic notifier chain * @n: Entry to remove from notifier chain * * Removes a notifier from an atomic notifier chain. * * Returns zero on success or %-ENOENT on failure. */ int atomic_notifier_chain_unregister(struct atomic_notifier_head *nh, struct notifier_block *n) { unsigned long flags; int ret; spin_lock_irqsave(&nh->lock, flags); ret = notifier_chain_unregister(&nh->head, n); spin_unlock_irqrestore(&nh->lock, flags); synchronize_rcu(); return ret; }
int unregister_netdevice_notifier(struct notifier_block *nb) { return notifier_chain_unregister(&netdev_chain,nb); }
int unregister_reboot_notifier(struct notifier_block * nb) { return notifier_chain_unregister(&reboot_notifier_list, nb); }
int unregister_inetaddr_notifier(struct notifier_block *nb) { return notifier_chain_unregister(&inetaddr_chain,nb); }
/** * raw_notifier_chain_unregister - Remove notifier from a raw notifier chain * @nh: Pointer to head of the raw notifier chain * @n: Entry to remove from notifier chain * * Removes a notifier from a raw notifier chain. * All locking must be provided by the caller. * * Returns zero on success or %-ENOENT on failure. */ int raw_notifier_chain_unregister(struct raw_notifier_head *nh, struct notifier_block *n) { return notifier_chain_unregister(&nh->head, n); }
int visdn_unregister_notifier(struct notifier_block *nb) { return notifier_chain_unregister(&visdn_notify_chain, nb); }
int netlink_unregister_notifier(struct notifier_block *nb) { return notifier_chain_unregister(&netlink_chain, nb); }
int vmm_raw_notifier_unregister(struct vmm_raw_notifier_chain *nc, struct vmm_notifier_block *n) { return notifier_chain_unregister(&nc->head, n); }
void unregister_xenstore_notifier(struct notifier_block *nb) { notifier_chain_unregister(&xenstore_chain, nb); }
void ibmasm_unregister_panic_notifier(void) { notifier_chain_unregister(&panic_notifier_list, &panic_notifier); }