FreeBSD kernel CAM code
|
#include <ctl_backend.h>
Public Member Functions | |
STAILQ_ENTRY (ctl_be_lun) links | |
Data Fields | |
uint8_t | lun_type |
ctl_backend_lun_flags | flags |
ctl_lun_serseq | serseq |
uint64_t | maxlba |
uint32_t | blocksize |
uint16_t | pblockexp |
uint16_t | pblockoff |
uint16_t | ublockexp |
uint16_t | ublockoff |
uint32_t | atomicblock |
uint32_t | opttxferlen |
uint32_t | req_lun_id |
uint32_t | lun_id |
uint8_t | serial_num [CTL_SN_LEN] |
uint8_t | device_id [CTL_DEVID_LEN] |
be_callback_t | lun_shutdown |
struct ctl_backend_driver * | be |
void * | ctl_lun |
nvlist_t * | options |
Definition at line 147 of file ctl_backend.h.
ctl_be_lun::STAILQ_ENTRY | ( | ctl_be_lun | ) |
uint32_t ctl_be_lun::atomicblock |
Definition at line 157 of file ctl_backend.h.
Referenced by ctl_backend_ramdisk_create(), ctl_be_block_open_dev(), ctl_inquiry_evpd_block_limits(), and ctl_read_write().
struct ctl_backend_driver* ctl_be_lun::be |
Definition at line 164 of file ctl_backend.h.
Referenced by ctl_add_lun(), ctl_backend_ramdisk_create(), and ctl_be_block_create().
uint32_t ctl_be_lun::blocksize |
Definition at line 152 of file ctl_backend.h.
Referenced by ctl_backend_ramdisk_cmp(), ctl_backend_ramdisk_compare(), ctl_backend_ramdisk_create(), ctl_backend_ramdisk_delete(), ctl_backend_ramdisk_lun_attr(), ctl_backend_ramdisk_modify(), ctl_backend_ramdisk_rw(), ctl_backend_ramdisk_ws(), ctl_be_block_create(), ctl_be_block_cw_dispatch_sync(), ctl_be_block_cw_dispatch_ws(), ctl_be_block_dispatch(), ctl_be_block_dispatch_dev(), ctl_be_block_getattr_file(), ctl_be_block_gls_file(), ctl_be_block_gls_zvol(), ctl_be_block_open_dev(), ctl_be_block_open_file(), ctl_be_block_unmap_dev(), ctl_be_block_unmap_dev_range(), ctl_be_block_unmap_file(), ctl_cnw(), ctl_get_config(), ctl_init_page_index(), ctl_ioctl(), ctl_mode_sense(), ctl_populate_token(), ctl_read_capacity(), ctl_read_capacity_16(), ctl_read_write(), ctl_sap_log_sense_handler(), ctl_verify(), ctl_write_same(), tpc_create_token(), and tpcl_resolve().
void* ctl_be_lun::ctl_lun |
Definition at line 165 of file ctl_backend.h.
Referenced by ctl_add_lun(), ctl_lun_capacity_changed(), ctl_lun_ejected(), ctl_lun_has_media(), ctl_lun_no_media(), ctl_lun_primary(), ctl_lun_secondary(), ctl_remove_lun(), ctl_start_lun(), and ctl_stop_lun().
uint8_t ctl_be_lun::device_id[CTL_DEVID_LEN] |
Definition at line 162 of file ctl_backend.h.
Referenced by ctl_add_lun(), ctl_backend_ramdisk_create(), ctl_be_block_create(), and ctl_ioctl().
ctl_backend_lun_flags ctl_be_lun::flags |
Definition at line 149 of file ctl_backend.h.
Referenced by ctl_add_lun(), ctl_backend_ramdisk_create(), ctl_backend_ramdisk_modify(), ctl_be_block_close(), ctl_be_block_config_write(), ctl_be_block_create(), ctl_be_block_modify(), ctl_be_block_open(), ctl_be_block_open_dev(), ctl_be_block_open_file(), ctl_be_block_rm(), ctl_be_block_worker(), ctl_inquiry_evpd_block_limits(), ctl_inquiry_evpd_lbp(), ctl_inquiry_evpd_sfs(), ctl_mode_sense(), ctl_read_capacity_16(), ctl_scsiio_lun_check(), and tpc_create_token().
uint32_t ctl_be_lun::lun_id |
Definition at line 160 of file ctl_backend.h.
Referenced by ctl_add_lun(), ctl_backend_ramdisk_create(), ctl_backend_ramdisk_modify(), ctl_backend_ramdisk_rm(), ctl_be_block_create(), ctl_be_block_modify(), and ctl_be_block_rm().
be_callback_t ctl_be_lun::lun_shutdown |
Definition at line 163 of file ctl_backend.h.
Referenced by ctl_backend_ramdisk_create(), and ctl_be_block_create().
uint8_t ctl_be_lun::lun_type |
Definition at line 148 of file ctl_backend.h.
Referenced by ctl_add_lun(), ctl_backend_ramdisk_create(), ctl_be_block_create(), ctl_be_block_open(), ctl_be_block_open_dev(), ctl_be_block_open_file(), ctl_do_mode_select(), ctl_init_log_page_index(), ctl_init_page_index(), ctl_inquiry_evpd(), ctl_inquiry_evpd_bdc(), ctl_inquiry_evpd_block_limits(), ctl_inquiry_evpd_devid(), ctl_inquiry_evpd_eid(), ctl_inquiry_evpd_lbp(), ctl_inquiry_evpd_mpp(), ctl_inquiry_evpd_scsi_ports(), ctl_inquiry_evpd_serial(), ctl_inquiry_evpd_sfs(), ctl_inquiry_evpd_supported(), ctl_inquiry_evpd_tpc(), ctl_inquiry_std(), ctl_ioctl(), ctl_mode_sense(), ctl_report_supported_opcodes(), and ctl_scsiio_precheck().
uint64_t ctl_be_lun::maxlba |
Definition at line 151 of file ctl_backend.h.
Referenced by ctl_backend_ramdisk_create(), ctl_backend_ramdisk_modify(), ctl_be_block_create(), ctl_be_block_open_dev(), ctl_be_block_open_file(), ctl_cnw(), ctl_get_lba_status(), ctl_init_page_index(), ctl_inquiry_evpd_block_limits(), ctl_ioctl(), ctl_mode_sense(), ctl_populate_token(), ctl_read_capacity(), ctl_read_capacity_16(), ctl_read_toc(), ctl_read_write(), ctl_sync_cache(), ctl_unmap(), ctl_verify(), ctl_write_same(), ctl_write_same_cont(), and ctl_write_using_token().
nvlist_t* ctl_be_lun::options |
Definition at line 166 of file ctl_backend.h.
Referenced by ctl_add_lun(), ctl_backend_ramdisk_create(), ctl_backend_ramdisk_lun_shutdown(), ctl_backend_ramdisk_modify(), ctl_be_block_create(), ctl_be_block_lun_shutdown(), ctl_be_block_modify(), ctl_be_block_open(), ctl_be_block_open_dev(), ctl_be_block_open_file(), ctl_extended_copy_lid1(), ctl_extended_copy_lid4(), ctl_ie_log_sense_handler(), ctl_init_page_index(), ctl_inquiry_evpd_bdc(), ctl_inquiry_evpd_block_limits(), ctl_inquiry_evpd_lbp(), ctl_inquiry_std(), ctl_ioctl(), ctl_report_ident_info(), ctl_temp_log_sense_handler(), and ctl_write_same().
uint32_t ctl_be_lun::opttxferlen |
Definition at line 158 of file ctl_backend.h.
Referenced by ctl_backend_ramdisk_create(), ctl_be_block_open_dev(), ctl_be_block_open_file(), and ctl_inquiry_evpd_block_limits().
uint16_t ctl_be_lun::pblockexp |
Definition at line 153 of file ctl_backend.h.
Referenced by ctl_backend_ramdisk_cmp(), ctl_backend_ramdisk_create(), ctl_backend_ramdisk_delete(), ctl_backend_ramdisk_gls(), ctl_backend_ramdisk_rw(), ctl_backend_ramdisk_ws(), ctl_be_block_cw_dispatch_ws(), ctl_be_block_open_dev(), ctl_be_block_open_file(), ctl_read_capacity_16(), tpc_create_token(), and tpcl_resolve().
uint16_t ctl_be_lun::pblockoff |
Definition at line 154 of file ctl_backend.h.
Referenced by ctl_backend_ramdisk_create(), ctl_be_block_cw_dispatch_ws(), ctl_be_block_open_dev(), ctl_be_block_open_file(), ctl_read_capacity_16(), tpc_create_token(), and tpcl_resolve().
uint32_t ctl_be_lun::req_lun_id |
Definition at line 159 of file ctl_backend.h.
Referenced by ctl_add_lun(), ctl_backend_ramdisk_create(), and ctl_be_block_create().
uint8_t ctl_be_lun::serial_num[CTL_SN_LEN] |
Definition at line 161 of file ctl_backend.h.
Referenced by ctl_backend_ramdisk_create(), ctl_be_block_create(), ctl_inquiry_evpd_serial(), and ctl_ioctl().
ctl_lun_serseq ctl_be_lun::serseq |
Definition at line 150 of file ctl_backend.h.
Referenced by ctl_backend_ramdisk_create(), ctl_backend_ramdisk_rw(), ctl_be_block_biodone(), ctl_be_block_dispatch_file(), ctl_be_block_dispatch_zvol(), ctl_be_block_open(), and ctl_check_for_blockage().
uint16_t ctl_be_lun::ublockexp |
Definition at line 155 of file ctl_backend.h.
Referenced by ctl_backend_ramdisk_create(), ctl_be_block_open_dev(), ctl_be_block_open_file(), and ctl_inquiry_evpd_block_limits().
uint16_t ctl_be_lun::ublockoff |
Definition at line 156 of file ctl_backend.h.
Referenced by ctl_backend_ramdisk_create(), ctl_be_block_open_dev(), ctl_be_block_open_file(), and ctl_inquiry_evpd_block_limits().