Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / net / dcbevent.h
blob02700262f71ac045044aa7086fc54f6d611b0650
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (c) 2010, Intel Corporation.
5 * Author: John Fastabend <john.r.fastabend@intel.com>
6 */
8 #ifndef _DCB_EVENT_H
9 #define _DCB_EVENT_H
11 struct notifier_block;
13 enum dcbevent_notif_type {
14 DCB_APP_EVENT = 1,
17 #ifdef CONFIG_DCB
18 int register_dcbevent_notifier(struct notifier_block *nb);
19 int unregister_dcbevent_notifier(struct notifier_block *nb);
20 int call_dcbevent_notifiers(unsigned long val, void *v);
21 #else
22 static inline int
23 register_dcbevent_notifier(struct notifier_block *nb)
25 return 0;
28 static inline int unregister_dcbevent_notifier(struct notifier_block *nb)
30 return 0;
33 static inline int call_dcbevent_notifiers(unsigned long val, void *v)
35 return 0;
37 #endif /* CONFIG_DCB */
39 #endif