mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 13:52:50 +01:00
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 <[email protected]> Reviewed-by: Allison Randal <[email protected]> Reviewed-by: Steve Winslow <[email protected]> Reviewed-by: Richard Fontana <[email protected]> Reviewed-by: Alexios Zavras <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
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 <[email protected]>
|
|
*/
|
|
|
|
#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);
|
|
}
|