/*1* Device Mapper Uevent Support2*3* This program is free software; you can redistribute it and/or modify it4* under the terms of the GNU General Public License as published by the5* Free Software Foundation; either version 2 of the License, or (at your6* option) any later version.7*8* This program is distributed in the hope that it will be useful, but9* WITHOUT ANY WARRANTY; without even the implied warranty of10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU11* General Public License for more details.12*13* You should have received a copy of the GNU General Public License along14* with this program; if not, write to the Free Software Foundation, Inc.,15* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.16*17* Copyright IBM Corporation, 200718* Author: Mike Anderson <[email protected]>19*/20#ifndef DM_UEVENT_H21#define DM_UEVENT_H2223enum dm_uevent_type {24DM_UEVENT_PATH_FAILED,25DM_UEVENT_PATH_REINSTATED,26};2728#ifdef CONFIG_DM_UEVENT2930extern int dm_uevent_init(void);31extern void dm_uevent_exit(void);32extern void dm_send_uevents(struct list_head *events, struct kobject *kobj);33extern void dm_path_uevent(enum dm_uevent_type event_type,34struct dm_target *ti, const char *path,35unsigned nr_valid_paths);3637#else3839static inline int dm_uevent_init(void)40{41return 0;42}43static inline void dm_uevent_exit(void)44{45}46static inline void dm_send_uevents(struct list_head *events,47struct kobject *kobj)48{49}50static inline void dm_path_uevent(enum dm_uevent_type event_type,51struct dm_target *ti, const char *path,52unsigned nr_valid_paths)53{54}5556#endif /* CONFIG_DM_UEVENT */5758#endif /* DM_UEVENT_H */596061