http://www.t10.org/
SCSI= Small Computer System Interface
Linux scsi代码:
linux-3.10.0-123.el7/drivers/scsi/device_handler
SCSI Device Handlers provide device specific support for devices utilized in multipath configurations
config SCSI_DH_ALUA
tristate "SPC-3 ALUA Device Handler"
depends on SCSI_DH
help
SCSI Device handler for generic SPC-3 Asymmetric Logical Unit
Access (ALUA).
obj-$(CONFIG_SCSI_DH_ALUA) += scsi_dh_alua.o// scsi alua
scsi_dh.c static int __init scsi_dh_init(void) { int r; r = bus_register_notifier(&scsi_bus_type, &scsi_dh_nb); if (!r) bus_for_each_dev(&scsi_bus_type, NULL, NULL, scsi_dh_sysfs_attr_add); return r; }
the ConfigFS enabled Linux-iSCSI.org iSCSI Target Mode Stac
linux-3.10.0-123.el7/drivers/target/iscsi
Linux 把用户态接口头文件放到这个路径写
userspace programs in Linux access the SG_IO ioctl through sg.h
scsi: move scsi/sg.h to uapi/linux/sg.h
include/uapi/scsi
include/scsi/scsi.h
include/scsi/scsi_ioctl.h