]> git.baikalelectronics.ru Git - kernel.git/commit
target: Add DEF_TB_DEFAULT_ATTRIBS macro for virtual device attrs
authorNicholas Bellinger <nab@linux-iscsi.org>
Fri, 28 Nov 2014 03:49:36 +0000 (19:49 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 2 Dec 2014 05:36:02 +0000 (21:36 -0800)
commitf3496de809ac909bc2ee0b47f209642b85098ec2
tree8c85860745e9328f85f23e16f3fdce9cd18853f1
parenta1a7b9e8ee5d57940047ba5eff291d3966efaa50
target: Add DEF_TB_DEFAULT_ATTRIBS macro for virtual device attrs

This helper macro adds the default set of 30 device attributes for
virtual devices from existing target_core_configfs.c code, and moves
the definitions into a single macro to create the structs necessary
for backend drivers.

It allows them to populate their own external struct configfs_attribute
for se_subsystem_api->tb_cits.tb_dev_attrib_cit.ct_attrs.

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
include/target/target_core_backend_configfs.h