summaryrefslogtreecommitdiff
path: root/include/target/target_core_backend.h
diff options
context:
space:
mode:
authorMike Christie <mchristi@redhat.com>2017-06-23 09:18:14 +0300
committerNicholas Bellinger <nab@linux-iscsi.org>2017-07-07 09:11:38 +0300
commit85441e6b8c97964a6da72135dc21f708adbdc4d8 (patch)
tree4e03541a349d033ae4bdaf1f485a57fd4e4aa6da /include/target/target_core_backend.h
parent0a5eee647b78e53da05e081362f42a11b4b674eb (diff)
downloadlinux-85441e6b8c97964a6da72135dc21f708adbdc4d8.tar.xz
target: add helper to find se_device by dev_index
This adds a helper to find a se_device by dev_index. It will be used in the next patches so tcmu's netlink interface can execute commands on specific devices. Signed-off-by: Mike Christie <mchristi@redhat.com> Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target/target_core_backend.h')
-rw-r--r--include/target/target_core_backend.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/target/target_core_backend.h b/include/target/target_core_backend.h
index 3dbcacd7e8d7..1f2b7007f2df 100644
--- a/include/target/target_core_backend.h
+++ b/include/target/target_core_backend.h
@@ -106,6 +106,8 @@ bool target_lun_is_rdonly(struct se_cmd *);
sense_reason_t passthrough_parse_cdb(struct se_cmd *cmd,
sense_reason_t (*exec_cmd)(struct se_cmd *cmd));
+struct se_device *target_find_device(int id, bool do_depend);
+
bool target_sense_desc_format(struct se_device *dev);
sector_t target_to_linux_sector(struct se_device *dev, sector_t lb);
bool target_configure_unmap_from_queue(struct se_dev_attrib *attrib,