FreeBSD kernel CAM code
|
#include <ctl_private.h>
Public Member Functions | |
STAILQ_HEAD (, ctl_lun) lun_list | |
STAILQ_HEAD (, ctl_frontend) fe_list | |
STAILQ_HEAD (, ctl_port) port_list | |
STAILQ_HEAD (, ctl_backend_driver) be_list | |
TAILQ_HEAD (tpc_tokens, tpc_token) tpc_tokens | |
Data Fields | |
struct mtx | ctl_lock |
struct cdev * | dev |
int | num_luns |
ctl_gen_flags | flags |
ctl_ha_mode | ha_mode |
int | ha_id |
int | is_single |
ctl_ha_link_state | ha_link |
int | port_min |
int | port_max |
int | port_cnt |
int | init_min |
int | init_max |
struct sysctl_ctx_list | sysctl_ctx |
struct sysctl_oid * | sysctl_tree |
void * | othersc_pool |
struct proc * | ctl_proc |
uint32_t * | ctl_lun_mask |
struct ctl_lun ** | ctl_luns |
uint32_t * | ctl_port_mask |
uint32_t | num_frontends |
uint32_t | num_ports |
struct ctl_port ** | ctl_ports |
uint32_t | num_backends |
struct uma_zone * | io_zone |
uint32_t | cur_pool_id |
int | shutdown |
struct ctl_thread | threads [CTL_MAX_THREADS] |
struct thread * | thresh_thread |
struct callout | tpc_timeout |
struct mtx | tpc_lock |
Definition at line 436 of file ctl_private.h.
ctl_softc::STAILQ_HEAD | ( | ctl_backend_driver | ) |
ctl_softc::STAILQ_HEAD | ( | ctl_frontend | ) |
ctl_softc::STAILQ_HEAD | ( | ctl_lun | ) |
ctl_softc::STAILQ_HEAD | ( | ctl_port | ) |
ctl_softc::TAILQ_HEAD | ( | tpc_tokens | , |
tpc_token | |||
) |
struct mtx ctl_softc::ctl_lock |
Definition at line 437 of file ctl_private.h.
Referenced by ctl_abort_task(), ctl_abort_task_set(), ctl_add_initiator(), ctl_add_lun(), ctl_backend_deregister(), ctl_backend_find(), ctl_backend_register(), ctl_build_ua(), ctl_clr_ua_allluns(), ctl_disable_lun(), ctl_enable_lun(), ctl_failover_lun(), ctl_free_lun(), ctl_frontend_deregister(), ctl_frontend_find(), ctl_frontend_register(), ctl_ha_role_sysctl(), ctl_hndl_per_res_out_on_other_sc(), ctl_i_t_nexus_loss(), ctl_init(), ctl_inquiry_evpd_scsi_ports(), ctl_ioctl(), ctl_isc_announce_iid(), ctl_isc_ha_link_down(), ctl_isc_lun_sync(), ctl_isc_mode_sync(), ctl_isc_port_sync(), ctl_isc_ua(), ctl_lun_reset(), ctl_port_deregister(), ctl_port_offline(), ctl_port_online(), ctl_port_register(), ctl_query_async_event(), ctl_query_task(), ctl_queue_sense(), ctl_remove_initiator(), ctl_report_luns(), ctl_report_tagret_port_groups(), ctl_serialize_other_sc_cmd(), ctl_shutdown(), ctl_target_reset(), ctl_thresh_thread(), ctl_tpc_init(), and tpcl_resolve().
uint32_t* ctl_softc::ctl_lun_mask |
Definition at line 454 of file ctl_private.h.
Referenced by ctl_add_lun(), ctl_free_lun(), ctl_init(), and ctl_shutdown().
struct ctl_lun** ctl_softc::ctl_luns |
Definition at line 455 of file ctl_private.h.
Referenced by ctl_abort_task(), ctl_abort_task_set(), ctl_add_lun(), ctl_failover_lun(), ctl_free_lun(), ctl_handle_isc(), ctl_hndl_per_res_out_on_other_sc(), ctl_init(), ctl_ioctl(), ctl_isc_lun_sync(), ctl_isc_mode_sync(), ctl_isc_ua(), ctl_lun_reset(), ctl_query_async_event(), ctl_query_task(), ctl_queue_sense(), ctl_report_luns(), ctl_scsiio_precheck(), ctl_serialize_other_sc_cmd(), and ctl_shutdown().
uint32_t* ctl_softc::ctl_port_mask |
Definition at line 456 of file ctl_private.h.
Referenced by ctl_init(), ctl_port_deregister(), ctl_port_register(), and ctl_shutdown().
struct ctl_port** ctl_softc::ctl_ports |
Definition at line 462 of file ctl_private.h.
Referenced by ctl_init(), ctl_ioctl(), ctl_isc_iid_sync(), ctl_isc_port_sync(), ctl_persistent_reserve_in(), ctl_port_deregister(), ctl_port_register(), ctl_shutdown(), and tpcl_resolve().
struct proc* ctl_softc::ctl_proc |
Definition at line 453 of file ctl_private.h.
Referenced by ctl_backend_ramdisk_create(), ctl_be_block_create(), ctl_ha_conn_thread(), ctl_ha_msg_init(), and ctl_init().
uint32_t ctl_softc::cur_pool_id |
Definition at line 466 of file ctl_private.h.
struct cdev* ctl_softc::dev |
Definition at line 438 of file ctl_private.h.
Referenced by ctl_init(), ctl_ioctl(), and ctl_shutdown().
ctl_gen_flags ctl_softc::flags |
Definition at line 440 of file ctl_private.h.
Referenced by ctl_backend_ramdisk_create(), ctl_backend_ramdisk_modify(), ctl_be_block_create(), ctl_be_block_modify(), ctl_ha_role_sysctl(), and ctl_init().
int ctl_softc::ha_id |
Definition at line 442 of file ctl_private.h.
Referenced by ctl_init(), ctl_isc_announce_port(), ctl_isc_ha_link_up(), and ctl_isc_login().
ctl_ha_link_state ctl_softc::ha_link |
Definition at line 444 of file ctl_private.h.
Referenced by ctl_init(), ctl_inquiry_std(), ctl_isc_announce_iid(), ctl_isc_announce_lun(), ctl_isc_announce_mode(), ctl_isc_announce_port(), ctl_isc_event_handler(), ctl_report_tagret_port_groups(), ctl_request_sense(), and ctl_scsiio_lun_check().
ctl_ha_mode ctl_softc::ha_mode |
Definition at line 441 of file ctl_private.h.
Referenced by ctl_be_block_create(), ctl_be_block_modify(), ctl_failover_lun(), ctl_handle_isc(), ctl_init(), ctl_isc_event_handler(), ctl_isc_ha_link_up(), ctl_isc_login(), ctl_process_done(), ctl_report_tagret_port_groups(), ctl_scsiio_lun_check(), ctl_serialize_other_sc_cmd(), ctl_thresh_thread(), and ctl_try_unblock_io().
int ctl_softc::init_max |
Definition at line 449 of file ctl_private.h.
Referenced by ctl_clr_ua(), ctl_est_ua(), and ctl_init().
int ctl_softc::init_min |
Definition at line 448 of file ctl_private.h.
Referenced by ctl_clr_ua(), ctl_est_ua(), ctl_hndl_per_res_out_on_other_sc(), ctl_init(), and ctl_persistent_reserve_out().
struct uma_zone* ctl_softc::io_zone |
Definition at line 465 of file ctl_private.h.
Referenced by ctl_init(), ctl_pool_create(), and ctl_shutdown().
int ctl_softc::is_single |
Definition at line 443 of file ctl_private.h.
Referenced by ctl_init(), ctl_inquiry_evpd_devid(), ctl_port_online(), ctl_report_tagret_port_groups(), and ctl_shutdown().
uint32_t ctl_softc::num_backends |
Definition at line 463 of file ctl_private.h.
Referenced by ctl_backend_deregister(), and ctl_backend_register().
uint32_t ctl_softc::num_frontends |
Definition at line 458 of file ctl_private.h.
Referenced by ctl_frontend_deregister(), and ctl_frontend_register().
int ctl_softc::num_luns |
Definition at line 439 of file ctl_private.h.
Referenced by ctl_add_lun(), ctl_free_lun(), and ctl_ioctl().
uint32_t ctl_softc::num_ports |
Definition at line 460 of file ctl_private.h.
Referenced by ctl_ioctl(), ctl_port_deregister(), and ctl_port_register().
void* ctl_softc::othersc_pool |
Definition at line 452 of file ctl_private.h.
Referenced by ctl_ha_init(), ctl_ha_shutdown(), ctl_isc_event_handler(), and ctl_isc_ha_link_down().
int ctl_softc::port_cnt |
Definition at line 447 of file ctl_private.h.
Referenced by ctl_init(), ctl_inquiry_evpd_devid(), and ctl_report_tagret_port_groups().
int ctl_softc::port_max |
Definition at line 446 of file ctl_private.h.
Referenced by ctl_clr_ua_all(), ctl_est_ua_all(), ctl_init(), ctl_ioctl(), ctl_isc_announce_iid(), ctl_isc_announce_port(), ctl_isc_ha_link_down(), and ctl_port_register().
int ctl_softc::port_min |
Definition at line 445 of file ctl_private.h.
Referenced by ctl_clr_ua_all(), ctl_est_ua_all(), ctl_init(), ctl_ioctl(), ctl_isc_announce_iid(), ctl_isc_announce_port(), ctl_isc_ha_link_down(), ctl_port_register(), and ctl_report_tagret_port_groups().
int ctl_softc::shutdown |
Definition at line 467 of file ctl_private.h.
Referenced by ctl_shutdown(), ctl_thresh_thread(), and ctl_work_thread().
struct sysctl_ctx_list ctl_softc::sysctl_ctx |
Definition at line 450 of file ctl_private.h.
Referenced by ctl_ha_msg_init(), ctl_init(), and ctl_shutdown().
struct sysctl_oid* ctl_softc::sysctl_tree |
Definition at line 451 of file ctl_private.h.
Referenced by ctl_ha_msg_init(), and ctl_init().
struct ctl_thread ctl_softc::threads[CTL_MAX_THREADS] |
Definition at line 468 of file ctl_private.h.
Referenced by ctl_enqueue_done(), ctl_enqueue_incoming(), ctl_enqueue_isc(), ctl_enqueue_rtr(), ctl_init(), and ctl_shutdown().
struct thread* ctl_softc::thresh_thread |
Definition at line 469 of file ctl_private.h.
Referenced by ctl_init(), ctl_shutdown(), and ctl_thresh_thread().
struct mtx ctl_softc::tpc_lock |
Definition at line 472 of file ctl_private.h.
Referenced by ctl_populate_token(), ctl_report_all_rod_tokens(), ctl_tpc_init(), ctl_tpc_lun_shutdown(), ctl_tpc_shutdown(), ctl_write_using_token(), tpc_process(), and tpc_timeout().
struct callout ctl_softc::tpc_timeout |
Definition at line 471 of file ctl_private.h.
Referenced by ctl_tpc_init(), ctl_tpc_shutdown(), and tpc_timeout().