diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2007-10-31 10:38:04 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-23 12:29:18 -0500 |
commit | d4acd722b7bb5f48b9fc3848e8c2a845b100d84f (patch) | |
tree | 24c0ccb9cd13d79b47588d44b27b3f1eb91a0ec7 /include | |
parent | d52b3815a52456dcf1a45fbc344e23bb643b2bda (diff) |
[SCSI] sysfs: add filter function to groups
This patch allows the various users of attribute_groups to selectively
allow the appearance of group attributes. The primary consumer of
this will be the transport classes in which we currently have
elaborate attribute selection algorithms to do this same thing.
Acked-by: Greg KH <greg@kroah.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sysfs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 149ab62329e2..802710438a9e 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
@@ -32,6 +32,8 @@ struct attribute { | |||
32 | 32 | ||
33 | struct attribute_group { | 33 | struct attribute_group { |
34 | const char *name; | 34 | const char *name; |
35 | int (*is_visible)(struct kobject *, | ||
36 | struct attribute *, int); | ||
35 | struct attribute **attrs; | 37 | struct attribute **attrs; |
36 | }; | 38 | }; |
37 | 39 | ||