FreeBSD kernel CAM code
ctl_softc Struct Reference

#include <ctl_private.h>

Collaboration diagram for ctl_softc:

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
 

Detailed Description

Definition at line 436 of file ctl_private.h.

Member Function Documentation

◆ STAILQ_HEAD() [1/4]

ctl_softc::STAILQ_HEAD ( ctl_backend_driver  )

◆ STAILQ_HEAD() [2/4]

ctl_softc::STAILQ_HEAD ( ctl_frontend  )

◆ STAILQ_HEAD() [3/4]

ctl_softc::STAILQ_HEAD ( ctl_lun  )

◆ STAILQ_HEAD() [4/4]

ctl_softc::STAILQ_HEAD ( ctl_port  )

◆ TAILQ_HEAD()

ctl_softc::TAILQ_HEAD ( tpc_tokens  ,
tpc_token   
)

Field Documentation

◆ ctl_lock

◆ ctl_lun_mask

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().

◆ ctl_luns

◆ ctl_port_mask

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().

◆ ctl_ports

◆ ctl_proc

struct proc* ctl_softc::ctl_proc

◆ cur_pool_id

uint32_t ctl_softc::cur_pool_id

Definition at line 466 of file ctl_private.h.

◆ dev

struct cdev* ctl_softc::dev

Definition at line 438 of file ctl_private.h.

Referenced by ctl_init(), ctl_ioctl(), and ctl_shutdown().

◆ flags

◆ ha_id

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().

◆ ha_link

◆ ha_mode

◆ init_max

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().

◆ init_min

int ctl_softc::init_min

◆ io_zone

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().

◆ is_single

int ctl_softc::is_single

◆ num_backends

uint32_t ctl_softc::num_backends

Definition at line 463 of file ctl_private.h.

Referenced by ctl_backend_deregister(), and ctl_backend_register().

◆ num_frontends

uint32_t ctl_softc::num_frontends

Definition at line 458 of file ctl_private.h.

Referenced by ctl_frontend_deregister(), and ctl_frontend_register().

◆ num_luns

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().

◆ num_ports

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().

◆ othersc_pool

void* ctl_softc::othersc_pool

◆ port_cnt

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().

◆ port_max

◆ port_min

◆ shutdown

int ctl_softc::shutdown

Definition at line 467 of file ctl_private.h.

Referenced by ctl_shutdown(), ctl_thresh_thread(), and ctl_work_thread().

◆ sysctl_ctx

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().

◆ sysctl_tree

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().

◆ threads

◆ thresh_thread

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().

◆ tpc_lock

◆ 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().


The documentation for this struct was generated from the following file: