History

IB/uverbs: Expose UAPI to query ucontext

Expose UAPI to query ucontext, this will let user space application that didn't allocate the ucontext but has access to by owning the matching command FD to retrieve the ucontext information.

Yishai Hadas committed 6 years ago

Commit 1c8fb1e1 parent 04c0a5f4 files · +51 −1Browse files

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

Unified · Split

include/uapi/rdma/ib_user_ioctl_cmds.h+6−0
@@ -69,6 +69,7 @@ enum uverbs_methods_device { · 68 unmodified lines
6969 UVERBS_METHOD_INFO_HANDLES,
7070 UVERBS_METHOD_QUERY_PORT,
7171 UVERBS_METHOD_GET_CONTEXT,
72+ UVERBS_METHOD_QUERY_CONTEXT,
7273 };
7374
7475 enum uverbs_attrs_invoke_write_cmd_attr_ids {
@@ -87,6 +88,11 @@ enum uverbs_attrs_get_context_attr_ids { · 12 unmodified lines
8788 UVERBS_ATTR_GET_CONTEXT_CORE_SUPPORT,
8889 };
8990
91+enum uverbs_attrs_query_context_attr_ids {
92+ UVERBS_ATTR_QUERY_CONTEXT_NUM_COMP_VECTORS,
93+ UVERBS_ATTR_QUERY_CONTEXT_CORE_SUPPORT,
94+};
95+
9096 enum uverbs_attrs_create_cq_cmd_attr_ids {
9197 UVERBS_ATTR_CREATE_CQ_HANDLE,
9298 UVERBS_ATTR_CREATE_CQ_CQE,