/*1* Copyright (c) 2010, Intel Corporation.2*3* This program is free software; you can redistribute it and/or modify it4* under the terms and conditions of the GNU General Public License,5* version 2, as published by the Free Software Foundation.6*7* This program is distributed in the hope it will be useful, but WITHOUT8* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or9* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for10* more details.11*12* You should have received a copy of the GNU General Public License along with13* this program; if not, write to the Free Software Foundation, Inc., 59 Temple14* Place - Suite 330, Boston, MA 02111-1307 USA.15*16* Author: John Fastabend <[email protected]>17*/1819#include <linux/rtnetlink.h>20#include <linux/notifier.h>2122static ATOMIC_NOTIFIER_HEAD(dcbevent_notif_chain);2324int register_dcbevent_notifier(struct notifier_block *nb)25{26return atomic_notifier_chain_register(&dcbevent_notif_chain, nb);27}28EXPORT_SYMBOL(register_dcbevent_notifier);2930int unregister_dcbevent_notifier(struct notifier_block *nb)31{32return atomic_notifier_chain_unregister(&dcbevent_notif_chain, nb);33}34EXPORT_SYMBOL(unregister_dcbevent_notifier);3536int call_dcbevent_notifiers(unsigned long val, void *v)37{38return atomic_notifier_call_chain(&dcbevent_notif_chain, val, v);39}404142