]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
target core: add device action configfs files
authorMike Christie <mchristi@redhat.com>
Tue, 19 Dec 2017 10:03:57 +0000 (04:03 -0600)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 17 Jan 2018 02:05:04 +0000 (18:05 -0800)
commit8dc31ff9298963425f5c4bb6011bc2bedb76b1e9
tree7081113c2bc84101ceb8557cf7c1831df438b044
parenta24e7917e1758daf9ac0da4fac0f7b48f0b4b624
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>
drivers/target/target_core_configfs.c
drivers/target/target_core_internal.h
include/target/target_core_backend.h
include/target/target_core_base.h