diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-11-27 22:15:48 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-12-02 00:36:02 -0500 |
commit | d30cd1238c2f89662c82d5d2c4686971a6dc3693 (patch) | |
tree | ba84502c9363e71d3089f1522af3e1e91603d4f9 /include/target | |
parent | 7a23f890b7c11b63dfc2a6c7ae1f0a631ed84865 (diff) |
target: Add EXPORT_SYMBOL for existing se_dev_set_*
Now that target_core_backend_configfs.h macros will be using these
se_dev_set attribute functions externally to allow backend drivers
to populate different attributes, go ahead and add EXPORT_SYMBOL()
for the existing default set of 30 device attributes.
Also update target_core_backend.h with proper function prototypes.
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r-- | include/target/target_core_backend.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/target/target_core_backend.h b/include/target/target_core_backend.h index 83a3726eabc5..430cfaf92285 100644 --- a/include/target/target_core_backend.h +++ b/include/target/target_core_backend.h | |||
@@ -110,4 +110,33 @@ void array_free(void *array, int n); | |||
110 | /* From target_core_configfs.c to setup default backend config_item_types */ | 110 | /* From target_core_configfs.c to setup default backend config_item_types */ |
111 | void target_core_setup_sub_cits(struct se_subsystem_api *); | 111 | void target_core_setup_sub_cits(struct se_subsystem_api *); |
112 | 112 | ||
113 | /* attribute helpers from target_core_device.c for backend drivers */ | ||
114 | int se_dev_set_max_unmap_lba_count(struct se_device *, u32); | ||
115 | int se_dev_set_max_unmap_block_desc_count(struct se_device *, u32); | ||
116 | int se_dev_set_unmap_granularity(struct se_device *, u32); | ||
117 | int se_dev_set_unmap_granularity_alignment(struct se_device *, u32); | ||
118 | int se_dev_set_max_write_same_len(struct se_device *, u32); | ||
119 | int se_dev_set_emulate_model_alias(struct se_device *, int); | ||
120 | int se_dev_set_emulate_dpo(struct se_device *, int); | ||
121 | int se_dev_set_emulate_fua_write(struct se_device *, int); | ||
122 | int se_dev_set_emulate_fua_read(struct se_device *, int); | ||
123 | int se_dev_set_emulate_write_cache(struct se_device *, int); | ||
124 | int se_dev_set_emulate_ua_intlck_ctrl(struct se_device *, int); | ||
125 | int se_dev_set_emulate_tas(struct se_device *, int); | ||
126 | int se_dev_set_emulate_tpu(struct se_device *, int); | ||
127 | int se_dev_set_emulate_tpws(struct se_device *, int); | ||
128 | int se_dev_set_emulate_caw(struct se_device *, int); | ||
129 | int se_dev_set_emulate_3pc(struct se_device *, int); | ||
130 | int se_dev_set_pi_prot_type(struct se_device *, int); | ||
131 | int se_dev_set_pi_prot_format(struct se_device *, int); | ||
132 | int se_dev_set_enforce_pr_isids(struct se_device *, int); | ||
133 | int se_dev_set_force_pr_aptpl(struct se_device *, int); | ||
134 | int se_dev_set_is_nonrot(struct se_device *, int); | ||
135 | int se_dev_set_emulate_rest_reord(struct se_device *dev, int); | ||
136 | int se_dev_set_queue_depth(struct se_device *, u32); | ||
137 | int se_dev_set_max_sectors(struct se_device *, u32); | ||
138 | int se_dev_set_fabric_max_sectors(struct se_device *, u32); | ||
139 | int se_dev_set_optimal_sectors(struct se_device *, u32); | ||
140 | int se_dev_set_block_size(struct se_device *, u32); | ||
141 | |||
113 | #endif /* TARGET_CORE_BACKEND_H */ | 142 | #endif /* TARGET_CORE_BACKEND_H */ |