diff options
| author | James Bottomley <[email protected]> | 2007-10-31 09:38:04 -0500 |
|---|---|---|
| committer | James Bottomley <[email protected]> | 2008-01-23 11:29:18 -0600 |
| commit | d4acd722b7bb5f48b9fc3848e8c2a845b100d84f (patch) | |
| tree | 24c0ccb9cd13d79b47588d44b27b3f1eb91a0ec7 /include/linux | |
| 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 <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'include/linux')
| -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 { struct attribute_group { const char *name; + int (*is_visible)(struct kobject *, + struct attribute *, int); struct attribute **attrs; }; |