Go to the documentation of this file.
23 #ifndef SCSI_TRANSPORT_ISCSI_H
24 #define SCSI_TRANSPORT_ISCSI_H
26 #include <linux/device.h>
27 #include <linux/list.h>
129 int *
index,
int *age);
197 #define iscsi_dev_to_conn(_dev) \
198 container_of(_dev, struct iscsi_cls_conn, dev)
200 #define transport_class_to_conn(_cdev) \
201 iscsi_dev_to_conn(_cdev->parent)
203 #define iscsi_conn_to_session(_conn) \
204 iscsi_dev_to_session(_conn->dev.parent)
213 #define ISCSI_MAX_TARGET -1
242 #define iscsi_dev_to_session(_dev) \
243 container_of(_dev, struct iscsi_cls_session, dev)
245 #define transport_class_to_session(_cdev) \
246 iscsi_dev_to_session(_cdev->parent)
248 #define iscsi_session_to_shost(_session) \
249 dev_to_shost(_session->dev.parent)
251 #define starget_to_session(_stgt) \
252 iscsi_dev_to_session(_stgt->dev.parent)
262 #define iscsi_job_to_shost(_job) \
263 dev_to_shost(_job->dev)
283 #define iscsi_dev_to_iface(_dev) \
284 container_of(_dev, struct iscsi_iface, dev)
286 #define iscsi_iface_to_shost(_iface) \
287 dev_to_shost(_iface->dev.parent)
292 #define iscsi_cls_session_printk(prefix, _cls_session, fmt, a...) \
293 dev_printk(prefix, &(_cls_session)->dev, fmt, ##a)
295 #define iscsi_cls_conn_printk(prefix, _cls_conn, fmt, a...) \
296 dev_printk(prefix, &(_cls_conn)->dev, fmt, ##a)