]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Introduce DECLARE_UVERBS_GLOBAL_METHODS
authorYishai Hadas <yishaih@mellanox.com>
Sun, 17 Jun 2018 09:59:58 +0000 (12:59 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 Jun 2018 16:53:02 +0000 (10:53 -0600)
commite56e4b27e44e138677cffb7cbc4553e7711a8c4d
tree3b5fa3a8cf0bfecc984b144374bd0ab22fe06b27
parentd10d6ef6696eeae66502e2a226933fa1fce79d94
IB/core: Introduce DECLARE_UVERBS_GLOBAL_METHODS

Introduce a new macro to be used for global methods on a singleton
object.

This macros sets internally the type_attrs to be NULL as such an object
can't be created.

Downstream patches from this series will use this macro.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/rdma/uverbs_named_ioctl.h
include/rdma/uverbs_std_types.h