aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sysfs.h
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
commitc71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch)
treeecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /include/linux/sysfs.h
parentea53c912f8a86a8567697115b6a0d8152beee5c8 (diff)
parent6a00f206debf8a5c8899055726ad127dbeeed098 (diff)
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts: litmus/sched_cedf.c
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r--include/linux/sysfs.h27
1 files changed, 15 insertions, 12 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index 96eb576d82fd..e2696d76a599 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -164,6 +164,10 @@ int sysfs_add_file_to_group(struct kobject *kobj,
164 const struct attribute *attr, const char *group); 164 const struct attribute *attr, const char *group);
165void sysfs_remove_file_from_group(struct kobject *kobj, 165void sysfs_remove_file_from_group(struct kobject *kobj,
166 const struct attribute *attr, const char *group); 166 const struct attribute *attr, const char *group);
167int sysfs_merge_group(struct kobject *kobj,
168 const struct attribute_group *grp);
169void sysfs_unmerge_group(struct kobject *kobj,
170 const struct attribute_group *grp);
167 171
168void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr); 172void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr);
169void sysfs_notify_dirent(struct sysfs_dirent *sd); 173void sysfs_notify_dirent(struct sysfs_dirent *sd);
@@ -172,10 +176,6 @@ struct sysfs_dirent *sysfs_get_dirent(struct sysfs_dirent *parent_sd,
172 const unsigned char *name); 176 const unsigned char *name);
173struct sysfs_dirent *sysfs_get(struct sysfs_dirent *sd); 177struct sysfs_dirent *sysfs_get(struct sysfs_dirent *sd);
174void sysfs_put(struct sysfs_dirent *sd); 178void sysfs_put(struct sysfs_dirent *sd);
175void sysfs_printk_last_file(void);
176
177/* Called to clear a ns tag when it is no longer valid */
178void sysfs_exit_ns(enum kobj_ns_type type, const void *tag);
179 179
180int __must_check sysfs_init(void); 180int __must_check sysfs_init(void);
181 181
@@ -302,6 +302,17 @@ static inline void sysfs_remove_file_from_group(struct kobject *kobj,
302{ 302{
303} 303}
304 304
305static inline int sysfs_merge_group(struct kobject *kobj,
306 const struct attribute_group *grp)
307{
308 return 0;
309}
310
311static inline void sysfs_unmerge_group(struct kobject *kobj,
312 const struct attribute_group *grp)
313{
314}
315
305static inline void sysfs_notify(struct kobject *kobj, const char *dir, 316static inline void sysfs_notify(struct kobject *kobj, const char *dir,
306 const char *attr) 317 const char *attr)
307{ 318{
@@ -324,19 +335,11 @@ static inline void sysfs_put(struct sysfs_dirent *sd)
324{ 335{
325} 336}
326 337
327static inline void sysfs_exit_ns(int type, const void *tag)
328{
329}
330
331static inline int __must_check sysfs_init(void) 338static inline int __must_check sysfs_init(void)
332{ 339{
333 return 0; 340 return 0;
334} 341}
335 342
336static inline void sysfs_printk_last_file(void)
337{
338}
339
340#endif /* CONFIG_SYSFS */ 343#endif /* CONFIG_SYSFS */
341 344
342#endif /* _SYSFS_H_ */ 345#endif /* _SYSFS_H_ */