0001
0002
0003
0004
0005
0006
0007
0008 #ifndef DM_UEVENT_H
0009 #define DM_UEVENT_H
0010
0011 enum dm_uevent_type {
0012 DM_UEVENT_PATH_FAILED,
0013 DM_UEVENT_PATH_REINSTATED,
0014 };
0015
0016 #ifdef CONFIG_DM_UEVENT
0017
0018 extern int dm_uevent_init(void);
0019 extern void dm_uevent_exit(void);
0020 extern void dm_send_uevents(struct list_head *events, struct kobject *kobj);
0021 extern void dm_path_uevent(enum dm_uevent_type event_type,
0022 struct dm_target *ti, const char *path,
0023 unsigned nr_valid_paths);
0024
0025 #else
0026
0027 static inline int dm_uevent_init(void)
0028 {
0029 return 0;
0030 }
0031 static inline void dm_uevent_exit(void)
0032 {
0033 }
0034 static inline void dm_send_uevents(struct list_head *events,
0035 struct kobject *kobj)
0036 {
0037 }
0038 static inline void dm_path_uevent(enum dm_uevent_type event_type,
0039 struct dm_target *ti, const char *path,
0040 unsigned nr_valid_paths)
0041 {
0042 }
0043
0044 #endif
0045
0046 #endif