Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/timer.h>
#include <linux/string.h>
#include <linux/utsname.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/blkdev.h>
#include <linux/configfs.h>
#include <scsi/scsi.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.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/configfs_macros.h>
#include "target_core_internal.h"
Go to the source code of this file.
Macros | |
#define | INITIAL_JIFFIES ((unsigned long)(unsigned int) (-300*HZ)) |
#define | NONE "None" |
#define | ISPRINT(a) ((a >= ' ') && (a <= '~')) |
#define | SCSI_LU_INDEX 1 |
#define | LU_COUNT 1 |
#define | DEV_STAT_SCSI_DEV_ATTR(_name, _mode) |
#define | DEV_STAT_SCSI_DEV_ATTR_RO(_name) |
#define | DEV_STAT_SCSI_TGT_DEV_ATTR(_name, _mode) |
#define | DEV_STAT_SCSI_TGT_DEV_ATTR_RO(_name) |
#define | DEV_STAT_SCSI_LU_ATTR(_name, _mode) |
#define | DEV_STAT_SCSI_LU_ATTR_RO(_name) |
#define | DEV_STAT_SCSI_PORT_ATTR(_name, _mode) |
#define | DEV_STAT_SCSI_PORT_ATTR_RO(_name) |
#define | DEV_STAT_SCSI_TGT_PORT_ATTR(_name, _mode) |
#define | DEV_STAT_SCSI_TGT_PORT_ATTR_RO(_name) |
#define | DEV_STAT_SCSI_TRANSPORT_ATTR(_name, _mode) |
#define | DEV_STAT_SCSI_TRANSPORT_ATTR_RO(_name) |
#define | DEV_STAT_SCSI_AUTH_INTR_ATTR(_name, _mode) |
#define | DEV_STAT_SCSI_AUTH_INTR_ATTR_RO(_name) |
#define | DEV_STAT_SCSI_ATTR_INTR_PORT_ATTR(_name, _mode) |
#define | DEV_STAT_SCSI_ATTR_INTR_PORT_ATTR_RO(_name) |
#define DEV_STAT_SCSI_ATTR_INTR_PORT_ATTR | ( | _name, | |
_mode | |||
) |
Definition at line 1589 of file target_core_stat.c.
#define DEV_STAT_SCSI_ATTR_INTR_PORT_ATTR_RO | ( | _name | ) |
Definition at line 1596 of file target_core_stat.c.
#define DEV_STAT_SCSI_AUTH_INTR_ATTR | ( | _name, | |
_mode | |||
) |
Definition at line 1223 of file target_core_stat.c.
#define DEV_STAT_SCSI_AUTH_INTR_ATTR_RO | ( | _name | ) |
Definition at line 1230 of file target_core_stat.c.
#define DEV_STAT_SCSI_DEV_ATTR | ( | _name, | |
_mode | |||
) |
Definition at line 67 of file target_core_stat.c.
#define DEV_STAT_SCSI_DEV_ATTR_RO | ( | _name | ) |
Definition at line 74 of file target_core_stat.c.
#define DEV_STAT_SCSI_LU_ATTR | ( | _name, | |
_mode | |||
) |
Definition at line 324 of file target_core_stat.c.
#define DEV_STAT_SCSI_LU_ATTR_RO | ( | _name | ) |
Definition at line 330 of file target_core_stat.c.
#define DEV_STAT_SCSI_PORT_ATTR | ( | _name, | |
_mode | |||
) |
Definition at line 687 of file target_core_stat.c.
#define DEV_STAT_SCSI_PORT_ATTR_RO | ( | _name | ) |
Definition at line 694 of file target_core_stat.c.
#define DEV_STAT_SCSI_TGT_DEV_ATTR | ( | _name, | |
_mode | |||
) |
Definition at line 163 of file target_core_stat.c.
#define DEV_STAT_SCSI_TGT_DEV_ATTR_RO | ( | _name | ) |
Definition at line 170 of file target_core_stat.c.
#define DEV_STAT_SCSI_TGT_PORT_ATTR | ( | _name, | |
_mode | |||
) |
Definition at line 830 of file target_core_stat.c.
#define DEV_STAT_SCSI_TGT_PORT_ATTR_RO | ( | _name | ) |
Definition at line 837 of file target_core_stat.c.
#define DEV_STAT_SCSI_TRANSPORT_ATTR | ( | _name, | |
_mode | |||
) |
Definition at line 1066 of file target_core_stat.c.
#define DEV_STAT_SCSI_TRANSPORT_ATTR_RO | ( | _name | ) |
Definition at line 1073 of file target_core_stat.c.
Definition at line 53 of file target_core_stat.c.
Definition at line 57 of file target_core_stat.c.
#define LU_COUNT 1 |
Definition at line 60 of file target_core_stat.c.
#define NONE "None" |
Definition at line 56 of file target_core_stat.c.
#define SCSI_LU_INDEX 1 |
Definition at line 59 of file target_core_stat.c.
CONFIGFS_EATTR_OPS | ( | target_stat_scsi_dev | , |
se_dev_stat_grps | , | ||
scsi_dev_group | |||
) |
CONFIGFS_EATTR_OPS | ( | target_stat_scsi_tgt_dev | , |
se_dev_stat_grps | , | ||
scsi_tgt_dev_group | |||
) |
CONFIGFS_EATTR_OPS | ( | target_stat_scsi_lu | , |
se_dev_stat_grps | , | ||
scsi_lu_group | |||
) |
CONFIGFS_EATTR_OPS | ( | target_stat_scsi_port | , |
se_port_stat_grps | , | ||
scsi_port_group | |||
) |
CONFIGFS_EATTR_OPS | ( | target_stat_scsi_tgt_port | , |
se_port_stat_grps | , | ||
scsi_tgt_port_group | |||
) |
CONFIGFS_EATTR_OPS | ( | target_stat_scsi_transport | , |
se_port_stat_grps | , | ||
scsi_transport_group | |||
) |
CONFIGFS_EATTR_OPS | ( | target_stat_scsi_auth_intr | , |
se_ml_stat_grps | , | ||
scsi_auth_intr_group | |||
) |
CONFIGFS_EATTR_OPS | ( | target_stat_scsi_att_intr_port | , |
se_ml_stat_grps | , | ||
scsi_att_intr_port_group | |||
) |
CONFIGFS_EATTR_STRUCT | ( | target_stat_scsi_dev | , |
se_dev_stat_grps | |||
) |
CONFIGFS_EATTR_STRUCT | ( | target_stat_scsi_tgt_dev | , |
se_dev_stat_grps | |||
) |
CONFIGFS_EATTR_STRUCT | ( | target_stat_scsi_lu | , |
se_dev_stat_grps | |||
) |
CONFIGFS_EATTR_STRUCT | ( | target_stat_scsi_port | , |
se_port_stat_grps | |||
) |
CONFIGFS_EATTR_STRUCT | ( | target_stat_scsi_tgt_port | , |
se_port_stat_grps | |||
) |
CONFIGFS_EATTR_STRUCT | ( | target_stat_scsi_transport | , |
se_port_stat_grps | |||
) |
CONFIGFS_EATTR_STRUCT | ( | target_stat_scsi_auth_intr | , |
se_ml_stat_grps | |||
) |
CONFIGFS_EATTR_STRUCT | ( | target_stat_scsi_att_intr_port | , |
se_ml_stat_grps | |||
) |
DEV_STAT_SCSI_ATTR_INTR_PORT_ATTR_RO | ( | inst | ) |
DEV_STAT_SCSI_ATTR_INTR_PORT_ATTR_RO | ( | dev | ) |
DEV_STAT_SCSI_ATTR_INTR_PORT_ATTR_RO | ( | port | ) |
DEV_STAT_SCSI_ATTR_INTR_PORT_ATTR_RO | ( | indx | ) |
DEV_STAT_SCSI_ATTR_INTR_PORT_ATTR_RO | ( | port_auth_indx | ) |
DEV_STAT_SCSI_ATTR_INTR_PORT_ATTR_RO | ( | port_ident | ) |
DEV_STAT_SCSI_AUTH_INTR_ATTR_RO | ( | inst | ) |
DEV_STAT_SCSI_AUTH_INTR_ATTR_RO | ( | dev | ) |
DEV_STAT_SCSI_AUTH_INTR_ATTR_RO | ( | port | ) |
DEV_STAT_SCSI_AUTH_INTR_ATTR_RO | ( | indx | ) |
DEV_STAT_SCSI_AUTH_INTR_ATTR_RO | ( | dev_or_port | ) |
DEV_STAT_SCSI_AUTH_INTR_ATTR_RO | ( | intr_name | ) |
DEV_STAT_SCSI_AUTH_INTR_ATTR_RO | ( | map_indx | ) |
DEV_STAT_SCSI_AUTH_INTR_ATTR_RO | ( | att_count | ) |
DEV_STAT_SCSI_AUTH_INTR_ATTR_RO | ( | num_cmds | ) |
DEV_STAT_SCSI_AUTH_INTR_ATTR_RO | ( | read_mbytes | ) |
DEV_STAT_SCSI_AUTH_INTR_ATTR_RO | ( | write_mbytes | ) |
DEV_STAT_SCSI_AUTH_INTR_ATTR_RO | ( | hs_num_cmds | ) |
DEV_STAT_SCSI_AUTH_INTR_ATTR_RO | ( | creation_time | ) |
DEV_STAT_SCSI_AUTH_INTR_ATTR_RO | ( | row_status | ) |
DEV_STAT_SCSI_DEV_ATTR_RO | ( | inst | ) |
DEV_STAT_SCSI_DEV_ATTR_RO | ( | indx | ) |
DEV_STAT_SCSI_DEV_ATTR_RO | ( | role | ) |
DEV_STAT_SCSI_DEV_ATTR_RO | ( | ports | ) |
DEV_STAT_SCSI_LU_ATTR_RO | ( | inst | ) |
DEV_STAT_SCSI_LU_ATTR_RO | ( | dev | ) |
DEV_STAT_SCSI_LU_ATTR_RO | ( | indx | ) |
DEV_STAT_SCSI_LU_ATTR_RO | ( | lun | ) |
DEV_STAT_SCSI_LU_ATTR_RO | ( | lu_name | ) |
DEV_STAT_SCSI_LU_ATTR_RO | ( | vend | ) |
DEV_STAT_SCSI_LU_ATTR_RO | ( | prod | ) |
DEV_STAT_SCSI_LU_ATTR_RO | ( | rev | ) |
DEV_STAT_SCSI_LU_ATTR_RO | ( | dev_type | ) |
DEV_STAT_SCSI_LU_ATTR_RO | ( | status | ) |
DEV_STAT_SCSI_LU_ATTR_RO | ( | state_bit | ) |
DEV_STAT_SCSI_LU_ATTR_RO | ( | num_cmds | ) |
DEV_STAT_SCSI_LU_ATTR_RO | ( | read_mbytes | ) |
DEV_STAT_SCSI_LU_ATTR_RO | ( | write_mbytes | ) |
DEV_STAT_SCSI_LU_ATTR_RO | ( | resets | ) |
DEV_STAT_SCSI_LU_ATTR_RO | ( | full_stat | ) |
DEV_STAT_SCSI_LU_ATTR_RO | ( | hs_num_cmds | ) |
DEV_STAT_SCSI_LU_ATTR_RO | ( | creation_time | ) |
DEV_STAT_SCSI_PORT_ATTR_RO | ( | inst | ) |
DEV_STAT_SCSI_PORT_ATTR_RO | ( | dev | ) |
DEV_STAT_SCSI_PORT_ATTR_RO | ( | indx | ) |
DEV_STAT_SCSI_PORT_ATTR_RO | ( | role | ) |
DEV_STAT_SCSI_PORT_ATTR_RO | ( | busy_count | ) |
DEV_STAT_SCSI_TGT_DEV_ATTR_RO | ( | inst | ) |
DEV_STAT_SCSI_TGT_DEV_ATTR_RO | ( | indx | ) |
DEV_STAT_SCSI_TGT_DEV_ATTR_RO | ( | num_lus | ) |
DEV_STAT_SCSI_TGT_DEV_ATTR_RO | ( | status | ) |
DEV_STAT_SCSI_TGT_DEV_ATTR_RO | ( | non_access_lus | ) |
DEV_STAT_SCSI_TGT_DEV_ATTR_RO | ( | resets | ) |
DEV_STAT_SCSI_TGT_PORT_ATTR_RO | ( | inst | ) |
DEV_STAT_SCSI_TGT_PORT_ATTR_RO | ( | dev | ) |
DEV_STAT_SCSI_TGT_PORT_ATTR_RO | ( | indx | ) |
DEV_STAT_SCSI_TGT_PORT_ATTR_RO | ( | name | ) |
DEV_STAT_SCSI_TGT_PORT_ATTR_RO | ( | port_index | ) |
DEV_STAT_SCSI_TGT_PORT_ATTR_RO | ( | in_cmds | ) |
DEV_STAT_SCSI_TGT_PORT_ATTR_RO | ( | write_mbytes | ) |
DEV_STAT_SCSI_TGT_PORT_ATTR_RO | ( | read_mbytes | ) |
DEV_STAT_SCSI_TGT_PORT_ATTR_RO | ( | hs_in_cmds | ) |
DEV_STAT_SCSI_TRANSPORT_ATTR_RO | ( | inst | ) |
DEV_STAT_SCSI_TRANSPORT_ATTR_RO | ( | device | ) |
DEV_STAT_SCSI_TRANSPORT_ATTR_RO | ( | indx | ) |
DEV_STAT_SCSI_TRANSPORT_ATTR_RO | ( | dev_name | ) |
void target_stat_setup_dev_default_groups | ( | struct se_subsystem_dev * | se_subdev | ) |
Definition at line 665 of file target_core_stat.c.
void target_stat_setup_mappedlun_default_groups | ( | struct se_lun_acl * | lacl | ) |
Definition at line 1781 of file target_core_stat.c.
Definition at line 1201 of file target_core_stat.c.