aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sysfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r--include/linux/sysfs.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index 6903e9204032..f2694eb4dd3d 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -87,17 +87,18 @@ struct attribute_group {
87 87
88#define attr_name(_attr) (_attr).attr.name 88#define attr_name(_attr) (_attr).attr.name
89 89
90struct file;
90struct vm_area_struct; 91struct vm_area_struct;
91 92
92struct bin_attribute { 93struct bin_attribute {
93 struct attribute attr; 94 struct attribute attr;
94 size_t size; 95 size_t size;
95 void *private; 96 void *private;
96 ssize_t (*read)(struct kobject *, struct bin_attribute *, 97 ssize_t (*read)(struct file *, struct kobject *, struct bin_attribute *,
97 char *, loff_t, size_t); 98 char *, loff_t, size_t);
98 ssize_t (*write)(struct kobject *, struct bin_attribute *, 99 ssize_t (*write)(struct file *,struct kobject *, struct bin_attribute *,
99 char *, loff_t, size_t); 100 char *, loff_t, size_t);
100 int (*mmap)(struct kobject *, struct bin_attribute *attr, 101 int (*mmap)(struct file *, struct kobject *, struct bin_attribute *attr,
101 struct vm_area_struct *vma); 102 struct vm_area_struct *vma);
102}; 103};
103 104