diff options
Diffstat (limited to 'include/linux/kobject.h')
-rw-r--r-- | include/linux/kobject.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h index d1c8d28fa92e..b850e0310538 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h | |||
@@ -74,9 +74,13 @@ extern void kobject_init(struct kobject *); | |||
74 | extern void kobject_cleanup(struct kobject *); | 74 | extern void kobject_cleanup(struct kobject *); |
75 | 75 | ||
76 | extern int __must_check kobject_add(struct kobject *); | 76 | extern int __must_check kobject_add(struct kobject *); |
77 | extern int __must_check kobject_shadow_add(struct kobject *, struct dentry *); | ||
77 | extern void kobject_del(struct kobject *); | 78 | extern void kobject_del(struct kobject *); |
78 | 79 | ||
79 | extern int __must_check kobject_rename(struct kobject *, const char *new_name); | 80 | extern int __must_check kobject_rename(struct kobject *, const char *new_name); |
81 | extern int __must_check kobject_shadow_rename(struct kobject *kobj, | ||
82 | struct dentry *new_parent, | ||
83 | const char *new_name); | ||
80 | extern int __must_check kobject_move(struct kobject *, struct kobject *); | 84 | extern int __must_check kobject_move(struct kobject *, struct kobject *); |
81 | 85 | ||
82 | extern int __must_check kobject_register(struct kobject *); | 86 | extern int __must_check kobject_register(struct kobject *); |
@@ -265,8 +269,8 @@ extern int __must_check subsys_create_file(struct subsystem * , | |||
265 | struct subsys_attribute *); | 269 | struct subsys_attribute *); |
266 | 270 | ||
267 | #if defined(CONFIG_HOTPLUG) | 271 | #if defined(CONFIG_HOTPLUG) |
268 | void kobject_uevent(struct kobject *kobj, enum kobject_action action); | 272 | int kobject_uevent(struct kobject *kobj, enum kobject_action action); |
269 | void kobject_uevent_env(struct kobject *kobj, enum kobject_action action, | 273 | int kobject_uevent_env(struct kobject *kobj, enum kobject_action action, |
270 | char *envp[]); | 274 | char *envp[]); |
271 | 275 | ||
272 | int add_uevent_var(char **envp, int num_envp, int *cur_index, | 276 | int add_uevent_var(char **envp, int num_envp, int *cur_index, |
@@ -274,11 +278,12 @@ int add_uevent_var(char **envp, int num_envp, int *cur_index, | |||
274 | const char *format, ...) | 278 | const char *format, ...) |
275 | __attribute__((format (printf, 7, 8))); | 279 | __attribute__((format (printf, 7, 8))); |
276 | #else | 280 | #else |
277 | static inline void kobject_uevent(struct kobject *kobj, enum kobject_action action) { } | 281 | static inline int kobject_uevent(struct kobject *kobj, enum kobject_action action) |
278 | static inline void kobject_uevent_env(struct kobject *kobj, | 282 | { return 0; } |
283 | static inline int kobject_uevent_env(struct kobject *kobj, | ||
279 | enum kobject_action action, | 284 | enum kobject_action action, |
280 | char *envp[]) | 285 | char *envp[]) |
281 | { } | 286 | { return 0; } |
282 | 287 | ||
283 | static inline int add_uevent_var(char **envp, int num_envp, int *cur_index, | 288 | static inline int add_uevent_var(char **envp, int num_envp, int *cur_index, |
284 | char *buffer, int buffer_size, int *cur_len, | 289 | char *buffer, int buffer_size, int *cur_len, |