Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dm-uevent.h
Go to the documentation of this file.
1 /*
2  * Device Mapper Uevent Support
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the
6  * Free Software Foundation; either version 2 of the License, or (at your
7  * option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  * Copyright IBM Corporation, 2007
19  * Author: Mike Anderson <[email protected]>
20  */
21 #ifndef DM_UEVENT_H
22 #define DM_UEVENT_H
23 
27 };
28 
29 #ifdef CONFIG_DM_UEVENT
30 
31 extern int dm_uevent_init(void);
32 extern void dm_uevent_exit(void);
33 extern void dm_send_uevents(struct list_head *events, struct kobject *kobj);
35  struct dm_target *ti, const char *path,
36  unsigned nr_valid_paths);
37 
38 #else
39 
40 static inline int dm_uevent_init(void)
41 {
42  return 0;
43 }
44 static inline void dm_uevent_exit(void)
45 {
46 }
47 static inline void dm_send_uevents(struct list_head *events,
48  struct kobject *kobj)
49 {
50 }
51 static 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 }
56 
57 #endif /* CONFIG_DM_UEVENT */
58 
59 #endif /* DM_UEVENT_H */