1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 2 /* 3 * Copyright (c) 2010, Intel Corporation. 3 * Copyright (c) 2010, Intel Corporation. 4 * 4 * 5 * Author: John Fastabend <john.r.fastabend@in 5 * Author: John Fastabend <john.r.fastabend@intel.com> 6 */ 6 */ 7 7 8 #ifndef _DCB_EVENT_H 8 #ifndef _DCB_EVENT_H 9 #define _DCB_EVENT_H 9 #define _DCB_EVENT_H 10 10 11 struct notifier_block; << 12 << 13 enum dcbevent_notif_type { 11 enum dcbevent_notif_type { 14 DCB_APP_EVENT = 1, 12 DCB_APP_EVENT = 1, 15 }; 13 }; 16 14 17 #ifdef CONFIG_DCB 15 #ifdef CONFIG_DCB 18 int register_dcbevent_notifier(struct notifier 16 int register_dcbevent_notifier(struct notifier_block *nb); 19 int unregister_dcbevent_notifier(struct notifi 17 int unregister_dcbevent_notifier(struct notifier_block *nb); 20 int call_dcbevent_notifiers(unsigned long val, 18 int call_dcbevent_notifiers(unsigned long val, void *v); 21 #else 19 #else 22 static inline int 20 static inline int 23 register_dcbevent_notifier(struct notifier_blo 21 register_dcbevent_notifier(struct notifier_block *nb) 24 { 22 { 25 return 0; 23 return 0; 26 } 24 } 27 25 28 static inline int unregister_dcbevent_notifier 26 static inline int unregister_dcbevent_notifier(struct notifier_block *nb) 29 { 27 { 30 return 0; 28 return 0; 31 } 29 } 32 30 33 static inline int call_dcbevent_notifiers(unsi 31 static inline int call_dcbevent_notifiers(unsigned long val, void *v) 34 { 32 { 35 return 0; 33 return 0; 36 } 34 } 37 #endif /* CONFIG_DCB */ 35 #endif /* CONFIG_DCB */ 38 36 39 #endif 37 #endif 40 38
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.