|
@@ -94,9 +94,12 @@ int __must_check sysfs_move_dir(struct kobject *kobj,
|
|
|
|
|
|
int __must_check sysfs_create_file(struct kobject *kobj,
|
|
int __must_check sysfs_create_file(struct kobject *kobj,
|
|
const struct attribute *attr);
|
|
const struct attribute *attr);
|
|
|
|
+int __must_check sysfs_create_files(struct kobject *kobj,
|
|
|
|
+ const struct attribute **attr);
|
|
int __must_check sysfs_chmod_file(struct kobject *kobj, struct attribute *attr,
|
|
int __must_check sysfs_chmod_file(struct kobject *kobj, struct attribute *attr,
|
|
mode_t mode);
|
|
mode_t mode);
|
|
void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr);
|
|
void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr);
|
|
|
|
+void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr);
|
|
|
|
|
|
int __must_check sysfs_create_bin_file(struct kobject *kobj,
|
|
int __must_check sysfs_create_bin_file(struct kobject *kobj,
|
|
const struct bin_attribute *attr);
|
|
const struct bin_attribute *attr);
|
|
@@ -164,6 +167,12 @@ static inline int sysfs_create_file(struct kobject *kobj,
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline int sysfs_create_files(struct kobject *kobj,
|
|
|
|
+ const struct attribute **attr)
|
|
|
|
+{
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
static inline int sysfs_chmod_file(struct kobject *kobj,
|
|
static inline int sysfs_chmod_file(struct kobject *kobj,
|
|
struct attribute *attr, mode_t mode)
|
|
struct attribute *attr, mode_t mode)
|
|
{
|
|
{
|
|
@@ -175,6 +184,11 @@ static inline void sysfs_remove_file(struct kobject *kobj,
|
|
{
|
|
{
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline void sysfs_remove_files(struct kobject *kobj,
|
|
|
|
+ const struct attribute **attr)
|
|
|
|
+{
|
|
|
|
+}
|
|
|
|
+
|
|
static inline int sysfs_create_bin_file(struct kobject *kobj,
|
|
static inline int sysfs_create_bin_file(struct kobject *kobj,
|
|
const struct bin_attribute *attr)
|
|
const struct bin_attribute *attr)
|
|
{
|
|
{
|