History

RDMA/uverbs: Add ioctl command to get a device context

Allow future extensions of the get context command through the uverbs ioctl kabi. Unlike the uverbs version this does not return an async_fd as well, that has to be done with another command.

Jason Gunthorpe committed 6 years ago

Commit a1123411 parent da57db26 files · +119 −62Browse files

Showing the changes to include/uapi (1 of 6 files). Show all

Unified · Split

include/uapi/rdma/ib_user_ioctl_cmds.h+5−0
@@ -68,6 +68,7 @@ enum uverbs_methods_device { · 67 unmodified lines
6868 UVERBS_METHOD_INVOKE_WRITE,
6969 UVERBS_METHOD_INFO_HANDLES,
7070 UVERBS_METHOD_QUERY_PORT,
71+ UVERBS_METHOD_GET_CONTEXT,
7172 };
7273
7374 enum uverbs_attrs_invoke_write_cmd_attr_ids {
@@ -81,6 +82,10 @@ enum uverbs_attrs_query_port_cmd_attr_ids { · 7 unmodified lines
8182 UVERBS_ATTR_QUERY_PORT_RESP,
8283 };
8384
85+enum uverbs_attrs_get_context_attr_ids {
86+ UVERBS_ATTR_GET_CONTEXT_NUM_COMP_VECTORS,
87+};
88+
8489 enum uverbs_attrs_create_cq_cmd_attr_ids {
8590 UVERBS_ATTR_CREATE_CQ_HANDLE,
8691 UVERBS_ATTR_CREATE_CQ_CQE,