mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
9952f6918d
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms and conditions of the gnu general public license version 2 as published by the free software foundation this program is distributed in the hope it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details you should have received a copy of the gnu general public license along with this program if not see http www gnu org licenses extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 228 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Steve Winslow <swinslow@gmail.com> Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190528171438.107155473@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
31 lines
790 B
C
31 lines
790 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Copyright (c) 2010, Intel Corporation.
|
|
*
|
|
* Author: John Fastabend <john.r.fastabend@intel.com>
|
|
*/
|
|
|
|
#include <linux/rtnetlink.h>
|
|
#include <linux/notifier.h>
|
|
#include <linux/export.h>
|
|
#include <net/dcbevent.h>
|
|
|
|
static ATOMIC_NOTIFIER_HEAD(dcbevent_notif_chain);
|
|
|
|
int register_dcbevent_notifier(struct notifier_block *nb)
|
|
{
|
|
return atomic_notifier_chain_register(&dcbevent_notif_chain, nb);
|
|
}
|
|
EXPORT_SYMBOL(register_dcbevent_notifier);
|
|
|
|
int unregister_dcbevent_notifier(struct notifier_block *nb)
|
|
{
|
|
return atomic_notifier_chain_unregister(&dcbevent_notif_chain, nb);
|
|
}
|
|
EXPORT_SYMBOL(unregister_dcbevent_notifier);
|
|
|
|
int call_dcbevent_notifiers(unsigned long val, void *v)
|
|
{
|
|
return atomic_notifier_call_chain(&dcbevent_notif_chain, val, v);
|
|
}
|