Path: blob/master/include/target/target_core_fabric_configfs.h
10814 views
/*1* Used for tfc_wwn_cit attributes2*/34#include <target/configfs_macros.h>56CONFIGFS_EATTR_STRUCT(target_fabric_nacl_attrib, se_node_acl);7#define TF_NACL_ATTRIB_ATTR(_fabric, _name, _mode) \8static struct target_fabric_nacl_attrib_attribute _fabric##_nacl_attrib_##_name = \9__CONFIGFS_EATTR(_name, _mode, \10_fabric##_nacl_attrib_show_##_name, \11_fabric##_nacl_attrib_store_##_name);1213CONFIGFS_EATTR_STRUCT(target_fabric_nacl_auth, se_node_acl);14#define TF_NACL_AUTH_ATTR(_fabric, _name, _mode) \15static struct target_fabric_nacl_auth_attribute _fabric##_nacl_auth_##_name = \16__CONFIGFS_EATTR(_name, _mode, \17_fabric##_nacl_auth_show_##_name, \18_fabric##_nacl_auth_store_##_name);1920#define TF_NACL_AUTH_ATTR_RO(_fabric, _name) \21static struct target_fabric_nacl_auth_attribute _fabric##_nacl_auth_##_name = \22__CONFIGFS_EATTR_RO(_name, \23_fabric##_nacl_auth_show_##_name);2425CONFIGFS_EATTR_STRUCT(target_fabric_nacl_param, se_node_acl);26#define TF_NACL_PARAM_ATTR(_fabric, _name, _mode) \27static struct target_fabric_nacl_param_attribute _fabric##_nacl_param_##_name = \28__CONFIGFS_EATTR(_name, _mode, \29_fabric##_nacl_param_show_##_name, \30_fabric##_nacl_param_store_##_name);3132#define TF_NACL_PARAM_ATTR_RO(_fabric, _name) \33static struct target_fabric_nacl_param_attribute _fabric##_nacl_param_##_name = \34__CONFIGFS_EATTR_RO(_name, \35_fabric##_nacl_param_show_##_name);363738CONFIGFS_EATTR_STRUCT(target_fabric_nacl_base, se_node_acl);39#define TF_NACL_BASE_ATTR(_fabric, _name, _mode) \40static struct target_fabric_nacl_base_attribute _fabric##_nacl_##_name = \41__CONFIGFS_EATTR(_name, _mode, \42_fabric##_nacl_show_##_name, \43_fabric##_nacl_store_##_name);4445#define TF_NACL_BASE_ATTR_RO(_fabric, _name) \46static struct target_fabric_nacl_base_attribute _fabric##_nacl_##_name = \47__CONFIGFS_EATTR_RO(_name, \48_fabric##_nacl_show_##_name);4950CONFIGFS_EATTR_STRUCT(target_fabric_np_base, se_tpg_np);51#define TF_NP_BASE_ATTR(_fabric, _name, _mode) \52static struct target_fabric_np_base_attribute _fabric##_np_##_name = \53__CONFIGFS_EATTR(_name, _mode, \54_fabric##_np_show_##_name, \55_fabric##_np_store_##_name);5657CONFIGFS_EATTR_STRUCT(target_fabric_tpg_attrib, se_portal_group);58#define TF_TPG_ATTRIB_ATTR(_fabric, _name, _mode) \59static struct target_fabric_tpg_attrib_attribute _fabric##_tpg_attrib_##_name = \60__CONFIGFS_EATTR(_name, _mode, \61_fabric##_tpg_attrib_show_##_name, \62_fabric##_tpg_attrib_store_##_name);636465CONFIGFS_EATTR_STRUCT(target_fabric_tpg_param, se_portal_group);66#define TF_TPG_PARAM_ATTR(_fabric, _name, _mode) \67static struct target_fabric_tpg_param_attribute _fabric##_tpg_param_##_name = \68__CONFIGFS_EATTR(_name, _mode, \69_fabric##_tpg_param_show_##_name, \70_fabric##_tpg_param_store_##_name);717273CONFIGFS_EATTR_STRUCT(target_fabric_tpg, se_portal_group);74#define TF_TPG_BASE_ATTR(_fabric, _name, _mode) \75static struct target_fabric_tpg_attribute _fabric##_tpg_##_name = \76__CONFIGFS_EATTR(_name, _mode, \77_fabric##_tpg_show_##_name, \78_fabric##_tpg_store_##_name);798081CONFIGFS_EATTR_STRUCT(target_fabric_wwn, target_fabric_configfs);82#define TF_WWN_ATTR(_fabric, _name, _mode) \83static struct target_fabric_wwn_attribute _fabric##_wwn_##_name = \84__CONFIGFS_EATTR(_name, _mode, \85_fabric##_wwn_show_attr_##_name, \86_fabric##_wwn_store_attr_##_name);8788#define TF_WWN_ATTR_RO(_fabric, _name) \89static struct target_fabric_wwn_attribute _fabric##_wwn_##_name = \90__CONFIGFS_EATTR_RO(_name, \91_fabric##_wwn_show_attr_##_name);9293CONFIGFS_EATTR_STRUCT(target_fabric_discovery, target_fabric_configfs);94#define TF_DISC_ATTR(_fabric, _name, _mode) \95static struct target_fabric_discovery_attribute _fabric##_disc_##_name = \96__CONFIGFS_EATTR(_name, _mode, \97_fabric##_disc_show_##_name, \98_fabric##_disc_store_##_name);99100#define TF_DISC_ATTR_RO(_fabric, _name) \101static struct target_fabric_discovery_attribute _fabric##_disc_##_name = \102__CONFIGFS_EATTR_RO(_name, \103_fabric##_disc_show_##_name);104105extern int target_fabric_setup_cits(struct target_fabric_configfs *);106107108