aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-uevent.h
diff options
context:
space:
mode:
authorMike Anderson <andmike@linux.vnet.ibm.com>2007-10-19 17:48:01 -0400
committerAlasdair G Kergon <agk@redhat.com>2007-10-19 21:01:26 -0400
commit7a8c3d3b92883798e4ead21dd48c16db0ec0ff6f (patch)
tree21a25dc6bd6afa11430e1ab8d997a4b1c0b960f0 /drivers/md/dm-uevent.h
parent51e5b2bd34ded40ef48cade8a6a8f1baa0b4275e (diff)
dm: uevent generate events
This patch adds support for the dm_path_event dm_send_event functions which create and send udev events. Signed-off-by: Mike Anderson <andmike@linux.vnet.ibm.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-uevent.h')
-rw-r--r--drivers/md/dm-uevent.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/md/dm-uevent.h b/drivers/md/dm-uevent.h
index 9d776836489..2eccc8bd671 100644
--- a/drivers/md/dm-uevent.h
+++ b/drivers/md/dm-uevent.h
@@ -21,10 +21,19 @@
21#ifndef DM_UEVENT_H 21#ifndef DM_UEVENT_H
22#define DM_UEVENT_H 22#define DM_UEVENT_H
23 23
24enum dm_uevent_type {
25 DM_UEVENT_PATH_FAILED,
26 DM_UEVENT_PATH_REINSTATED,
27};
28
24#ifdef CONFIG_DM_UEVENT 29#ifdef CONFIG_DM_UEVENT
25 30
26extern int dm_uevent_init(void); 31extern int dm_uevent_init(void);
27extern void dm_uevent_exit(void); 32extern void dm_uevent_exit(void);
33extern void dm_send_uevents(struct list_head *events, struct kobject *kobj);
34extern void dm_path_uevent(enum dm_uevent_type event_type,
35 struct dm_target *ti, const char *path,
36 unsigned nr_valid_paths);
28 37
29#else 38#else
30 39
@@ -35,6 +44,15 @@ static inline int dm_uevent_init(void)
35static inline void dm_uevent_exit(void) 44static inline void dm_uevent_exit(void)
36{ 45{
37} 46}
47static inline void dm_send_uevents(struct list_head *events,
48 struct kobject *kobj)
49{
50}
51static inline void dm_path_uevent(enum dm_uevent_type event_type,
52 struct dm_target *ti, const char *path,
53 unsigned nr_valid_paths)
54{
55}
38 56
39#endif /* CONFIG_DM_UEVENT */ 57#endif /* CONFIG_DM_UEVENT */
40 58