aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/sysfs.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index cfa83083a2d4..3e8526582146 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -94,9 +94,12 @@ int __must_check sysfs_move_dir(struct kobject *kobj,
94 94
95int __must_check sysfs_create_file(struct kobject *kobj, 95int __must_check sysfs_create_file(struct kobject *kobj,
96 const struct attribute *attr); 96 const struct attribute *attr);
97int __must_check sysfs_create_files(struct kobject *kobj,
98 const struct attribute **attr);
97int __must_check sysfs_chmod_file(struct kobject *kobj, struct attribute *attr, 99int __must_check sysfs_chmod_file(struct kobject *kobj, struct attribute *attr,
98 mode_t mode); 100 mode_t mode);
99void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr); 101void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr);
102void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr);
100 103
101int __must_check sysfs_create_bin_file(struct kobject *kobj, 104int __must_check sysfs_create_bin_file(struct kobject *kobj,
102 const struct bin_attribute *attr); 105 const struct bin_attribute *attr);
@@ -164,6 +167,12 @@ static inline int sysfs_create_file(struct kobject *kobj,
164 return 0; 167 return 0;
165} 168}
166 169
170static inline int sysfs_create_files(struct kobject *kobj,
171 const struct attribute **attr)
172{
173 return 0;
174}
175
167static inline int sysfs_chmod_file(struct kobject *kobj, 176static inline int sysfs_chmod_file(struct kobject *kobj,
168 struct attribute *attr, mode_t mode) 177 struct attribute *attr, mode_t mode)
169{ 178{
@@ -175,6 +184,11 @@ static inline void sysfs_remove_file(struct kobject *kobj,
175{ 184{
176} 185}
177 186
187static inline void sysfs_remove_files(struct kobject *kobj,
188 const struct attribute **attr)
189{
190}
191
178static inline int sysfs_create_bin_file(struct kobject *kobj, 192static inline int sysfs_create_bin_file(struct kobject *kobj,
179 const struct bin_attribute *attr) 193 const struct bin_attribute *attr)
180{ 194{