diff options
author | Tejun Heo <htejun@gmail.com> | 2007-09-20 03:05:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-10-12 17:51:11 -0400 |
commit | 85a4ffad3de77177591f7c2c18c26c3c8dd28bff (patch) | |
tree | 3c67b1435dfd9a5b56d39235f1b44769f96f0fcc /fs/sysfs/sysfs.h | |
parent | bc747f37a0f089b9366f7385ff870e12911f2383 (diff) |
sysfs: implement sysfs_open_dirent
Implement sysfs_open_dirent which represents an open file (attribute)
sysfs_dirent. A file sysfs_dirent with one or more open files have
one sysfs_dirent and all sysfs_buffers (one for each open instance)
are linked to it.
sysfs_open_dirent doesn't actually do anything yet but will be used to
off-load things which are specific for open file sysfs_dirent from it.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/sysfs/sysfs.h')
-rw-r--r-- | fs/sysfs/sysfs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h index 42b0327d1624..3adce7d5e4f7 100644 --- a/fs/sysfs/sysfs.h +++ b/fs/sysfs/sysfs.h | |||
@@ -1,3 +1,5 @@ | |||
1 | struct sysfs_open_dirent; | ||
2 | |||
1 | /* type-specific structures for sysfs_dirent->s_* union members */ | 3 | /* type-specific structures for sysfs_dirent->s_* union members */ |
2 | struct sysfs_elem_dir { | 4 | struct sysfs_elem_dir { |
3 | struct kobject *kobj; | 5 | struct kobject *kobj; |
@@ -11,6 +13,7 @@ struct sysfs_elem_symlink { | |||
11 | 13 | ||
12 | struct sysfs_elem_attr { | 14 | struct sysfs_elem_attr { |
13 | struct attribute *attr; | 15 | struct attribute *attr; |
16 | struct sysfs_open_dirent *open; | ||
14 | }; | 17 | }; |
15 | 18 | ||
16 | struct sysfs_elem_bin_attr { | 19 | struct sysfs_elem_bin_attr { |