aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/kobject.h')
-rw-r--r--include/linux/kobject.h15
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 *);
74extern void kobject_cleanup(struct kobject *); 74extern void kobject_cleanup(struct kobject *);
75 75
76extern int __must_check kobject_add(struct kobject *); 76extern int __must_check kobject_add(struct kobject *);
77extern int __must_check kobject_shadow_add(struct kobject *, struct dentry *);
77extern void kobject_del(struct kobject *); 78extern void kobject_del(struct kobject *);
78 79
79extern int __must_check kobject_rename(struct kobject *, const char *new_name); 80extern int __must_check kobject_rename(struct kobject *, const char *new_name);
81extern int __must_check kobject_shadow_rename(struct kobject *kobj,
82 struct dentry *new_parent,
83 const char *new_name);
80extern int __must_check kobject_move(struct kobject *, struct kobject *); 84extern int __must_check kobject_move(struct kobject *, struct kobject *);
81 85
82extern int __must_check kobject_register(struct kobject *); 86extern 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)
268void kobject_uevent(struct kobject *kobj, enum kobject_action action); 272int kobject_uevent(struct kobject *kobj, enum kobject_action action);
269void kobject_uevent_env(struct kobject *kobj, enum kobject_action action, 273int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
270 char *envp[]); 274 char *envp[]);
271 275
272int add_uevent_var(char **envp, int num_envp, int *cur_index, 276int 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
277static inline void kobject_uevent(struct kobject *kobj, enum kobject_action action) { } 281static inline int kobject_uevent(struct kobject *kobj, enum kobject_action action)
278static inline void kobject_uevent_env(struct kobject *kobj, 282{ return 0; }
283static 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
283static inline int add_uevent_var(char **envp, int num_envp, int *cur_index, 288static 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,