Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (c) 2010, Intel Corporation.
0004  *
0005  * Author: John Fastabend <john.r.fastabend@intel.com>
0006  */
0007 
0008 #ifndef _DCB_EVENT_H
0009 #define _DCB_EVENT_H
0010 
0011 struct notifier_block;
0012 
0013 enum dcbevent_notif_type {
0014     DCB_APP_EVENT = 1,
0015 };
0016 
0017 #ifdef CONFIG_DCB
0018 int register_dcbevent_notifier(struct notifier_block *nb);
0019 int unregister_dcbevent_notifier(struct notifier_block *nb);
0020 int call_dcbevent_notifiers(unsigned long val, void *v);
0021 #else
0022 static inline int
0023 register_dcbevent_notifier(struct notifier_block *nb)
0024 {
0025     return 0;
0026 }
0027 
0028 static inline int unregister_dcbevent_notifier(struct notifier_block *nb)
0029 {
0030     return 0;
0031 }
0032 
0033 static inline int call_dcbevent_notifiers(unsigned long val, void *v)
0034 {
0035     return 0;
0036 }
0037 #endif /* CONFIG_DCB */
0038 
0039 #endif