target_core_configfs.h 1.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
#define TARGET_CORE_CONFIGFS_VERSION TARGET_CORE_MOD_VERSION

#define TARGET_CORE_CONFIG_ROOT	"/sys/kernel/config"

#define TARGET_CORE_NAME_MAX_LEN	64
#define TARGET_FABRIC_NAME_SIZE		32

struct target_fabric_configfs_template {
	struct config_item_type tfc_discovery_cit;
	struct config_item_type	tfc_wwn_cit;
11
	struct config_item_type tfc_wwn_fabric_stats_cit;
12 13 14 15
	struct config_item_type tfc_tpg_cit;
	struct config_item_type tfc_tpg_base_cit;
	struct config_item_type tfc_tpg_lun_cit;
	struct config_item_type tfc_tpg_port_cit;
16
	struct config_item_type tfc_tpg_port_stat_cit;
17 18 19
	struct config_item_type tfc_tpg_np_cit;
	struct config_item_type tfc_tpg_np_base_cit;
	struct config_item_type tfc_tpg_attrib_cit;
20
	struct config_item_type tfc_tpg_auth_cit;
21 22 23 24 25 26
	struct config_item_type tfc_tpg_param_cit;
	struct config_item_type tfc_tpg_nacl_cit;
	struct config_item_type tfc_tpg_nacl_base_cit;
	struct config_item_type tfc_tpg_nacl_attrib_cit;
	struct config_item_type tfc_tpg_nacl_auth_cit;
	struct config_item_type tfc_tpg_nacl_param_cit;
27
	struct config_item_type tfc_tpg_nacl_stat_cit;
28
	struct config_item_type tfc_tpg_mappedlun_cit;
29
	struct config_item_type tfc_tpg_mappedlun_stat_cit;
30 31 32 33 34 35 36 37
};

struct target_fabric_configfs {
	atomic_t		tf_access_cnt;
	struct list_head	tf_list;
	struct config_group	tf_group;
	struct config_group	tf_disc_group;
	struct config_group	*tf_default_groups[2];
38
	const struct target_core_fabric_ops *tf_ops;
39 40 41
	struct target_fabric_configfs_template tf_cit_tmpl;
};