aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/sysfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs/sysfs.h')
-rw-r--r--fs/sysfs/sysfs.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h
index bd7cec295da..39c623fdc27 100644
--- a/fs/sysfs/sysfs.h
+++ b/fs/sysfs/sysfs.h
@@ -33,6 +33,22 @@ struct sysfs_symlink {
33 struct kobject * target_kobj; 33 struct kobject * target_kobj;
34}; 34};
35 35
36struct sysfs_buffer {
37 struct list_head associates;
38 size_t count;
39 loff_t pos;
40 char * page;
41 struct sysfs_ops * ops;
42 struct semaphore sem;
43 int orphaned;
44 int needs_read_fill;
45 int event;
46};
47
48struct sysfs_buffer_collection {
49 struct list_head associates;
50};
51
36static inline struct kobject * to_kobj(struct dentry * dentry) 52static inline struct kobject * to_kobj(struct dentry * dentry)
37{ 53{
38 struct sysfs_dirent * sd = dentry->d_fsdata; 54 struct sysfs_dirent * sd = dentry->d_fsdata;