Spdk/lib/scsi
Shuhei Matsumoto 4bf8ffba80 scsi: Add spdk_scsi_dev_get_first/next_lun() to traverse all LUNs
Add two public APIs spdk_scsi_dev_get_first_lun() and
spdk_scsi_dev_get_next_lun() to remove the dependency on the macro
constant SPDK_SCSI_DEV_MAX_LUN from lib/iscsi and lib/vhost.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I6546697f823fe9f4fa34e1161f5c7fa912dd2d59
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9608
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: GangCao <gang.cao@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2022-06-30 13:32:26 -04:00
..
dev.c scsi: Add spdk_scsi_dev_get_first/next_lun() to traverse all LUNs 2022-06-30 13:32:26 -04:00
lun.c lib/trace: don't pass zero as a non-argument 2021-06-28 16:17:35 +00:00
Makefile scsi: Add spdk_scsi_dev_get_first/next_lun() to traverse all LUNs 2022-06-30 13:32:26 -04:00
port.c lib/scsi: Remove spdk_ prefix from internal APIs 2020-04-16 08:09:14 +00:00
scsi_bdev.c util: Add macro SPDK_SIZEOF_MEMBER to get size of a member of a struct 2021-07-15 07:16:22 +00:00
scsi_internal.h scsi: Delete mutex from spdk_scsi_globals 2021-06-17 08:59:18 +00:00
scsi_pr.c scsi: return scsi error status for invalid SCSI CDB 2021-04-15 20:25:28 +00:00
scsi_rpc.c lib/scsi: Remove spdk prefix from private functions 2020-04-16 08:09:14 +00:00
scsi.c scsi: Delete mutex from spdk_scsi_globals 2021-06-17 08:59:18 +00:00
spdk_scsi.map scsi: Add spdk_scsi_dev_get_first/next_lun() to traverse all LUNs 2022-06-30 13:32:26 -04:00
task.c scsi: relax spdk_scsi_task_gather_data assert 2021-03-09 08:53:21 +00:00