summaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_internal.h
diff options
context:
space:
mode:
authorMike Christie2017-12-19 11:03:57 +0100
committerNicholas Bellinger2018-01-17 03:05:04 +0100
commit8dc31ff9298963425f5c4bb6011bc2bedb76b1e9 (patch)
tree7081113c2bc84101ceb8557cf7c1831df438b044 /drivers/target/target_core_internal.h
parenttcmu: fix error return code in tcmu_configure_device() (diff)
downloadkernel-qcow2-linux-8dc31ff9298963425f5c4bb6011bc2bedb76b1e9.tar.gz
kernel-qcow2-linux-8dc31ff9298963425f5c4bb6011bc2bedb76b1e9.tar.xz
kernel-qcow2-linux-8dc31ff9298963425f5c4bb6011bc2bedb76b1e9.zip
target core: add device action configfs files
This patch adds a new group of files that are to be used to have the kernel module execution some action. The next patch will have target_core_user use the group/files to be able to block a device and to reset its memory buffer used to pass commands between user/kernel space. This type of file is different from the existing device attributes in that they may be write only and when written to they result in the kernel module executing some function. These need to be separate from the normal device attributes which get/set device values so userspace can continue to loop over all the attribs and get/set them during initialization. Signed-off-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_internal.h')
-rw-r--r--drivers/target/target_core_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/target_core_internal.h b/drivers/target/target_core_internal.h
index 6d53d9fcb883..1d5afc3ae017 100644
--- a/drivers/target/target_core_internal.h
+++ b/drivers/target/target_core_internal.h
@@ -17,6 +17,7 @@ struct target_backend {
struct config_item_type tb_dev_cit;
struct config_item_type tb_dev_attrib_cit;
+ struct config_item_type tb_dev_action_cit;
struct config_item_type tb_dev_pr_cit;
struct config_item_type tb_dev_wwn_cit;
struct config_item_type tb_dev_alua_tg_pt_gps_cit;