|
#define | CTL_DEFAULT_DEV "/dev/cam/ctl" |
|
#define | CTL_MAX_TARGETS 1 |
|
#define | CTL_MAX_TARGID 15 |
|
#define | CTL_MAX_INIT_PER_PORT 2048 |
|
#define | CTL_MINOR 225 |
|
#define | CTL_STATS_NUM_TYPES 3 |
|
#define | CTL_ERROR_STR_LEN 160 |
|
#define | CTL_BE_NAME_LEN 32 |
|
#define | CTL_ISCSI_NAME_LEN 224 /* 223 bytes, by RFC 3720, + '\0' */ |
|
#define | CTL_ISCSI_ADDR_LEN 47 /* INET6_ADDRSTRLEN + '\0' */ |
|
#define | CTL_ISCSI_ALIAS_LEN 128 /* Arbitrary. */ |
|
#define | CTL_ISCSI_OFFLOAD_LEN 8 /* Arbitrary. */ |
|
#define | CTL_IO _IOWR(CTL_MINOR, 0x00, union ctl_io) |
|
#define | CTL_ENABLE_PORT _IOW(CTL_MINOR, 0x04, struct ctl_port_entry) |
|
#define | CTL_DISABLE_PORT _IOW(CTL_MINOR, 0x05, struct ctl_port_entry) |
|
#define | CTL_DELAY_IO _IOWR(CTL_MINOR, 0x10, struct ctl_io_delay_info) |
|
#define | CTL_ERROR_INJECT _IOWR(CTL_MINOR, 0x16, struct ctl_error_desc) |
|
#define | CTL_GET_OOA _IOWR(CTL_MINOR, 0x18, struct ctl_ooa) |
|
#define | CTL_DUMP_STRUCTS _IO(CTL_MINOR, 0x19) |
|
#define | CTL_LUN_REQ _IOWR(CTL_MINOR, 0x21, struct ctl_lun_req) |
|
#define | CTL_LUN_LIST _IOWR(CTL_MINOR, 0x22, struct ctl_lun_list) |
|
#define | CTL_ERROR_INJECT_DELETE _IOW(CTL_MINOR, 0x23, struct ctl_error_desc) |
|
#define | CTL_SET_PORT_WWNS _IOW(CTL_MINOR, 0x24, struct ctl_port_entry) |
|
#define | CTL_ISCSI _IOWR(CTL_MINOR, 0x25, struct ctl_iscsi) |
|
#define | CTL_PORT_REQ _IOWR(CTL_MINOR, 0x26, struct ctl_req) |
|
#define | CTL_PORT_LIST _IOWR(CTL_MINOR, 0x27, struct ctl_lun_list) |
|
#define | CTL_LUN_MAP _IOW(CTL_MINOR, 0x28, struct ctl_lun_map) |
|
#define | CTL_GET_LUN_STATS _IOWR(CTL_MINOR, 0x29, struct ctl_get_io_stats) |
|
#define | CTL_GET_PORT_STATS _IOWR(CTL_MINOR, 0x2a, struct ctl_get_io_stats) |
|
|
enum | ctl_delay_type { CTL_DELAY_TYPE_NONE
, CTL_DELAY_TYPE_CONT
, CTL_DELAY_TYPE_ONESHOT
} |
|
enum | ctl_delay_location { CTL_DELAY_LOC_NONE
, CTL_DELAY_LOC_DATAMOVE
, CTL_DELAY_LOC_DONE
} |
|
enum | ctl_delay_status {
CTL_DELAY_STATUS_NONE
, CTL_DELAY_STATUS_OK
, CTL_DELAY_STATUS_INVALID_LUN
, CTL_DELAY_STATUS_INVALID_TYPE
,
CTL_DELAY_STATUS_INVALID_LOC
, CTL_DELAY_STATUS_NOT_IMPLEMENTED
} |
|
enum | ctl_stat_types { CTL_STATS_NO_IO
, CTL_STATS_READ
, CTL_STATS_WRITE
} |
|
enum | ctl_stats_status { CTL_SS_OK
, CTL_SS_NEED_MORE_SPACE
, CTL_SS_ERROR
} |
|
enum | ctl_stats_flags { CTL_STATS_FLAG_NONE = 0x00
, CTL_STATS_FLAG_TIME_VALID = 0x01
} |
|
enum | ctl_lun_error {
CTL_LUN_INJ_NONE = 0x000
, CTL_LUN_INJ_ABORTED = 0x001
, CTL_LUN_INJ_MEDIUM_ERR = 0x002
, CTL_LUN_INJ_UA = 0x003
,
CTL_LUN_INJ_CUSTOM = 0x004
, CTL_LUN_INJ_TYPE = 0x0ff
, CTL_LUN_INJ_CONTINUOUS = 0x100
, CTL_LUN_INJ_DESCRIPTOR = 0x200
} |
|
enum | ctl_lun_error_pattern {
CTL_LUN_PAT_NONE = 0x000
, CTL_LUN_PAT_READ = 0x001
, CTL_LUN_PAT_WRITE = 0x002
, CTL_LUN_PAT_READWRITE = CTL_LUN_PAT_READ | CTL_LUN_PAT_WRITE
,
CTL_LUN_PAT_READCAP = 0x004
, CTL_LUN_PAT_TUR = 0x008
, CTL_LUN_PAT_ANY = 0x0ff
, CTL_LUN_PAT_MASK = 0x0ff
,
CTL_LUN_PAT_CMD = 0x100
, CTL_LUN_PAT_RANGE = 0x200
} |
|
enum | ctl_ooa_flags { CTL_OOA_FLAG_NONE = 0x00
, CTL_OOA_FLAG_ALL_LUNS = 0x01
} |
|
enum | ctl_get_ooa_status { CTL_OOA_OK
, CTL_OOA_NEED_MORE_SPACE
, CTL_OOA_ERROR
} |
|
enum | ctl_ooa_cmd_flags {
CTL_OOACMD_FLAG_NONE = 0x00
, CTL_OOACMD_FLAG_DMA = 0x01
, CTL_OOACMD_FLAG_BLOCKED = 0x02
, CTL_OOACMD_FLAG_ABORT = 0x04
,
CTL_OOACMD_FLAG_RTR = 0x08
, CTL_OOACMD_FLAG_DMA_QUEUED = 0x10
, CTL_OOACMD_FLAG_STATUS_QUEUED = 0x20
, CTL_OOACMD_FLAG_STATUS_SENT = 0x40
} |
|
enum | ctl_lun_status { CTL_LUN_NOSTATUS
, CTL_LUN_OK
, CTL_LUN_ERROR
, CTL_LUN_WARNING
} |
|
enum | ctl_lunreq_type { CTL_LUNREQ_CREATE
, CTL_LUNREQ_RM
, CTL_LUNREQ_MODIFY
} |
|
enum | ctl_backend_lun_flags {
CTL_LUN_FLAG_ID_REQ = 0x01
, CTL_LUN_FLAG_STOPPED = 0x02
, CTL_LUN_FLAG_NO_MEDIA = 0x04
, CTL_LUN_FLAG_PRIMARY = 0x08
,
CTL_LUN_FLAG_SERIAL_NUM = 0x10
, CTL_LUN_FLAG_DEVID = 0x20
, CTL_LUN_FLAG_DEV_TYPE = 0x40
, CTL_LUN_FLAG_UNMAP = 0x80
,
CTL_LUN_FLAG_EJECTED = 0x100
, CTL_LUN_FLAG_READONLY = 0x200
} |
|
enum | ctl_lun_list_status { CTL_LUN_LIST_NONE
, CTL_LUN_LIST_OK
, CTL_LUN_LIST_NEED_MORE_SPACE
, CTL_LUN_LIST_ERROR
} |
|
enum | ctl_req_type { CTL_REQ_CREATE
, CTL_REQ_REMOVE
, CTL_REQ_MODIFY
} |
|
enum | ctl_iscsi_status { CTL_ISCSI_OK
, CTL_ISCSI_ERROR
, CTL_ISCSI_LIST_NEED_MORE_SPACE
, CTL_ISCSI_SESSION_NOT_FOUND
} |
|
enum | ctl_iscsi_type {
CTL_ISCSI_HANDOFF
, CTL_ISCSI_LIST
, CTL_ISCSI_LOGOUT
, CTL_ISCSI_TERMINATE
,
CTL_ISCSI_LIMITS
, CTL_ISCSI_LISTEN
, CTL_ISCSI_ACCEPT
, CTL_ISCSI_SEND
,
CTL_ISCSI_RECEIVE
} |
|
enum | ctl_iscsi_digest { CTL_ISCSI_DIGEST_NONE
, CTL_ISCSI_DIGEST_CRC32C
} |
|