aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi_transport_iscsi.h
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2011-07-25 14:48:42 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-08-27 10:36:03 -0400
commit3128c6c73cdf3df92c3165bfb785ae50114d18bf (patch)
tree49af7993064b0140bda96c795a47fa336525d02c /include/scsi/scsi_transport_iscsi.h
parented1086e041b4870313dd0c0755f4bbc3b62d0d08 (diff)
[SCSI] iscsi cls: sysfs group is_visible callout for conn attrs
The iscsi class currently does not support writable sysfs attrs for LLD sysfs settings. This patch converts the iscsi class and drivers to use the attribute container sysfs group and the sysfs group's is_visible callout to be able to support readable or writable sysfs attrs. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'include/scsi/scsi_transport_iscsi.h')
-rw-r--r--include/scsi/scsi_transport_iscsi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/scsi/scsi_transport_iscsi.h b/include/scsi/scsi_transport_iscsi.h
index e1f210a173a5..8918329feaac 100644
--- a/include/scsi/scsi_transport_iscsi.h
+++ b/include/scsi/scsi_transport_iscsi.h
@@ -144,8 +144,10 @@ struct iscsi_transport {
144 int (*get_iface_param) (struct iscsi_iface *iface, 144 int (*get_iface_param) (struct iscsi_iface *iface,
145 enum iscsi_param_type param_type, 145 enum iscsi_param_type param_type,
146 int param, char *buf); 146 int param, char *buf);
147 mode_t (*attr_is_visible)(int param_type, int param);
147}; 148};
148 149
150
149/* 151/*
150 * transport registration upcalls 152 * transport registration upcalls
151 */ 153 */
@@ -178,6 +180,9 @@ struct iscsi_cls_conn {
178#define iscsi_dev_to_conn(_dev) \ 180#define iscsi_dev_to_conn(_dev) \
179 container_of(_dev, struct iscsi_cls_conn, dev) 181 container_of(_dev, struct iscsi_cls_conn, dev)
180 182
183#define transport_class_to_conn(_cdev) \
184 iscsi_dev_to_conn(_cdev->parent)
185
181#define iscsi_conn_to_session(_conn) \ 186#define iscsi_conn_to_session(_conn) \
182 iscsi_dev_to_session(_conn->dev.parent) 187 iscsi_dev_to_session(_conn->dev.parent)
183 188