Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
target_core_alua.c File Reference
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/configfs.h>
#include <linux/export.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <asm/unaligned.h>
#include <target/target_core_base.h>
#include <target/target_core_backend.h>
#include <target/target_core_fabric.h>
#include <target/target_core_configfs.h>
#include "target_core_internal.h"
#include "target_core_alua.h"
#include "target_core_ua.h"

Go to the source code of this file.

Functions

int target_emulate_report_target_port_groups (struct se_cmd *cmd)
 
int target_emulate_set_target_port_groups (struct se_cmd *cmd)
 
charcore_alua_dump_status (int status)
 
int core_alua_check_nonop_delay (struct se_cmd *cmd)
 
 EXPORT_SYMBOL (core_alua_check_nonop_delay)
 
int core_alua_do_port_transition (struct t10_alua_tg_pt_gp *l_tg_pt_gp, struct se_device *l_dev, struct se_port *l_port, struct se_node_acl *l_nacl, int new_state, int explict)
 
struct t10_alua_lu_gpcore_alua_allocate_lu_gp (const char *name, int def_group)
 
int core_alua_set_lu_gp_id (struct t10_alua_lu_gp *lu_gp, u16 lu_gp_id)
 
void core_alua_free_lu_gp (struct t10_alua_lu_gp *lu_gp)
 
void core_alua_free_lu_gp_mem (struct se_device *dev)
 
struct t10_alua_lu_gpcore_alua_get_lu_gp_by_name (const char *name)
 
void core_alua_put_lu_gp_from_name (struct t10_alua_lu_gp *lu_gp)
 
void __core_alua_attach_lu_gp_mem (struct t10_alua_lu_gp_member *lu_gp_mem, struct t10_alua_lu_gp *lu_gp)
 
void __core_alua_drop_lu_gp_mem (struct t10_alua_lu_gp_member *lu_gp_mem, struct t10_alua_lu_gp *lu_gp)
 
struct t10_alua_tg_pt_gpcore_alua_allocate_tg_pt_gp (struct se_subsystem_dev *su_dev, const char *name, int def_group)
 
int core_alua_set_tg_pt_gp_id (struct t10_alua_tg_pt_gp *tg_pt_gp, u16 tg_pt_gp_id)
 
struct t10_alua_tg_pt_gp_membercore_alua_allocate_tg_pt_gp_mem (struct se_port *port)
 
void core_alua_free_tg_pt_gp (struct t10_alua_tg_pt_gp *tg_pt_gp)
 
void core_alua_free_tg_pt_gp_mem (struct se_port *port)
 
void __core_alua_attach_tg_pt_gp_mem (struct t10_alua_tg_pt_gp_member *tg_pt_gp_mem, struct t10_alua_tg_pt_gp *tg_pt_gp)
 
ssize_t core_alua_show_tg_pt_gp_info (struct se_port *port, char *page)
 
ssize_t core_alua_store_tg_pt_gp_info (struct se_port *port, const char *page, size_t count)
 
ssize_t core_alua_show_access_type (struct t10_alua_tg_pt_gp *tg_pt_gp, char *page)
 
ssize_t core_alua_store_access_type (struct t10_alua_tg_pt_gp *tg_pt_gp, const char *page, size_t count)
 
ssize_t core_alua_show_nonop_delay_msecs (struct t10_alua_tg_pt_gp *tg_pt_gp, char *page)
 
ssize_t core_alua_store_nonop_delay_msecs (struct t10_alua_tg_pt_gp *tg_pt_gp, const char *page, size_t count)
 
ssize_t core_alua_show_trans_delay_msecs (struct t10_alua_tg_pt_gp *tg_pt_gp, char *page)
 
ssize_t core_alua_store_trans_delay_msecs (struct t10_alua_tg_pt_gp *tg_pt_gp, const char *page, size_t count)
 
ssize_t core_alua_show_implict_trans_secs (struct t10_alua_tg_pt_gp *tg_pt_gp, char *page)
 
ssize_t core_alua_store_implict_trans_secs (struct t10_alua_tg_pt_gp *tg_pt_gp, const char *page, size_t count)
 
ssize_t core_alua_show_preferred_bit (struct t10_alua_tg_pt_gp *tg_pt_gp, char *page)
 
ssize_t core_alua_store_preferred_bit (struct t10_alua_tg_pt_gp *tg_pt_gp, const char *page, size_t count)
 
ssize_t core_alua_show_offline_bit (struct se_lun *lun, char *page)
 
ssize_t core_alua_store_offline_bit (struct se_lun *lun, const char *page, size_t count)
 
ssize_t core_alua_show_secondary_status (struct se_lun *lun, char *page)
 
ssize_t core_alua_store_secondary_status (struct se_lun *lun, const char *page, size_t count)
 
ssize_t core_alua_show_secondary_write_metadata (struct se_lun *lun, char *page)
 
ssize_t core_alua_store_secondary_write_metadata (struct se_lun *lun, const char *page, size_t count)
 
int core_setup_alua (struct se_device *dev, int force_pt)
 

Variables

struct t10_alua_lu_gpdefault_lu_gp
 

Function Documentation

void __core_alua_attach_lu_gp_mem ( struct t10_alua_lu_gp_member lu_gp_mem,
struct t10_alua_lu_gp lu_gp 
)

Definition at line 1334 of file target_core_alua.c.

void __core_alua_attach_tg_pt_gp_mem ( struct t10_alua_tg_pt_gp_member tg_pt_gp_mem,
struct t10_alua_tg_pt_gp tg_pt_gp 
)

Definition at line 1613 of file target_core_alua.c.

void __core_alua_drop_lu_gp_mem ( struct t10_alua_lu_gp_member lu_gp_mem,
struct t10_alua_lu_gp lu_gp 
)

Definition at line 1349 of file target_core_alua.c.

struct t10_alua_lu_gp* core_alua_allocate_lu_gp ( const char name,
int  def_group 
)
read

Definition at line 1120 of file target_core_alua.c.

struct t10_alua_tg_pt_gp* core_alua_allocate_tg_pt_gp ( struct se_subsystem_dev su_dev,
const char name,
int  def_group 
)
read

Definition at line 1361 of file target_core_alua.c.

struct t10_alua_tg_pt_gp_member* core_alua_allocate_tg_pt_gp_mem ( struct se_port port)
read

Definition at line 1459 of file target_core_alua.c.

int core_alua_check_nonop_delay ( struct se_cmd cmd)

Definition at line 690 of file target_core_alua.c.

int core_alua_do_port_transition ( struct t10_alua_tg_pt_gp l_tg_pt_gp,
struct se_device l_dev,
struct se_port l_port,
struct se_node_acl l_nacl,
int  new_state,
int  explict 
)

Definition at line 892 of file target_core_alua.c.

char* core_alua_dump_status ( int  status)

Definition at line 670 of file target_core_alua.c.

void core_alua_free_lu_gp ( struct t10_alua_lu_gp lu_gp)

Definition at line 1210 of file target_core_alua.c.

void core_alua_free_lu_gp_mem ( struct se_device dev)

Definition at line 1269 of file target_core_alua.c.

void core_alua_free_tg_pt_gp ( struct t10_alua_tg_pt_gp tg_pt_gp)

Definition at line 1480 of file target_core_alua.c.

void core_alua_free_tg_pt_gp_mem ( struct se_port port)

Definition at line 1542 of file target_core_alua.c.

struct t10_alua_lu_gp* core_alua_get_lu_gp_by_name ( const char name)
read

Definition at line 1303 of file target_core_alua.c.

void core_alua_put_lu_gp_from_name ( struct t10_alua_lu_gp lu_gp)

Definition at line 1324 of file target_core_alua.c.

int core_alua_set_lu_gp_id ( struct t10_alua_lu_gp lu_gp,
u16  lu_gp_id 
)

Definition at line 1143 of file target_core_alua.c.

int core_alua_set_tg_pt_gp_id ( struct t10_alua_tg_pt_gp tg_pt_gp,
u16  tg_pt_gp_id 
)

Definition at line 1408 of file target_core_alua.c.

ssize_t core_alua_show_access_type ( struct t10_alua_tg_pt_gp tg_pt_gp,
char page 
)

Definition at line 1781 of file target_core_alua.c.

ssize_t core_alua_show_implict_trans_secs ( struct t10_alua_tg_pt_gp tg_pt_gp,
char page 
)

Definition at line 1889 of file target_core_alua.c.

ssize_t core_alua_show_nonop_delay_msecs ( struct t10_alua_tg_pt_gp tg_pt_gp,
char page 
)

Definition at line 1827 of file target_core_alua.c.

ssize_t core_alua_show_offline_bit ( struct se_lun lun,
char page 
)

Definition at line 1949 of file target_core_alua.c.

ssize_t core_alua_show_preferred_bit ( struct t10_alua_tg_pt_gp tg_pt_gp,
char page 
)

Definition at line 1920 of file target_core_alua.c.

ssize_t core_alua_show_secondary_status ( struct se_lun lun,
char page 
)

Definition at line 1994 of file target_core_alua.c.

ssize_t core_alua_show_secondary_write_metadata ( struct se_lun lun,
char page 
)

Definition at line 2026 of file target_core_alua.c.

ssize_t core_alua_show_tg_pt_gp_info ( struct se_port port,
char page 
)

Definition at line 1641 of file target_core_alua.c.

ssize_t core_alua_show_trans_delay_msecs ( struct t10_alua_tg_pt_gp tg_pt_gp,
char page 
)

Definition at line 1858 of file target_core_alua.c.

ssize_t core_alua_store_access_type ( struct t10_alua_tg_pt_gp tg_pt_gp,
const char page,
size_t  count 
)

Definition at line 1796 of file target_core_alua.c.

ssize_t core_alua_store_implict_trans_secs ( struct t10_alua_tg_pt_gp tg_pt_gp,
const char page,
size_t  count 
)

Definition at line 1896 of file target_core_alua.c.

ssize_t core_alua_store_nonop_delay_msecs ( struct t10_alua_tg_pt_gp tg_pt_gp,
const char page,
size_t  count 
)

Definition at line 1834 of file target_core_alua.c.

ssize_t core_alua_store_offline_bit ( struct se_lun lun,
const char page,
size_t  count 
)

Definition at line 1958 of file target_core_alua.c.

ssize_t core_alua_store_preferred_bit ( struct t10_alua_tg_pt_gp tg_pt_gp,
const char page,
size_t  count 
)

Definition at line 1927 of file target_core_alua.c.

ssize_t core_alua_store_secondary_status ( struct se_lun lun,
const char page,
size_t  count 
)

Definition at line 2001 of file target_core_alua.c.

ssize_t core_alua_store_secondary_write_metadata ( struct se_lun lun,
const char page,
size_t  count 
)

Definition at line 2034 of file target_core_alua.c.

ssize_t core_alua_store_tg_pt_gp_info ( struct se_port port,
const char page,
size_t  count 
)

Definition at line 1679 of file target_core_alua.c.

ssize_t core_alua_store_trans_delay_msecs ( struct t10_alua_tg_pt_gp tg_pt_gp,
const char page,
size_t  count 
)

Definition at line 1865 of file target_core_alua.c.

int core_setup_alua ( struct se_device dev,
int  force_pt 
)

Definition at line 2057 of file target_core_alua.c.

EXPORT_SYMBOL ( core_alua_check_nonop_delay  )
int target_emulate_report_target_port_groups ( struct se_cmd cmd)

Definition at line 62 of file target_core_alua.c.

int target_emulate_set_target_port_groups ( struct se_cmd cmd)

Definition at line 203 of file target_core_alua.c.

Variable Documentation

struct t10_alua_lu_gp* default_lu_gp

Definition at line 55 of file target_core_alua.c.