[openib-general] [PATCH 5/5 v3] 2.6.20 rdma/cma: export rdma cm interface to userspace

Or Gerlitz ogerlitz at voltaire.com
Thu Dec 14 06:44:37 PST 2006


Sean Hefty wrote:
> Export the rdma cm interfaces to userspace.
> +static ssize_t (*ucma_cmd_table[])(struct ucma_file *file,
> +				   const char __user *inbuf,
> +				   int in_len, int out_len) = {
> +	[RDMA_USER_CM_CMD_CREATE_ID]	= ucma_create_id,
> +	[RDMA_USER_CM_CMD_DESTROY_ID]	= ucma_destroy_id,
> +	[RDMA_USER_CM_CMD_BIND_ADDR]	= ucma_bind_addr,
> +	[RDMA_USER_CM_CMD_RESOLVE_ADDR]	= ucma_resolve_addr,
> +	[RDMA_USER_CM_CMD_RESOLVE_ROUTE]= ucma_resolve_route,
> +	[RDMA_USER_CM_CMD_QUERY_ROUTE]	= ucma_query_route,
> +	[RDMA_USER_CM_CMD_CONNECT]	= ucma_connect,
> +	[RDMA_USER_CM_CMD_LISTEN]	= ucma_listen,
> +	[RDMA_USER_CM_CMD_ACCEPT]	= ucma_accept,
> +	[RDMA_USER_CM_CMD_REJECT]	= ucma_reject,
> +	[RDMA_USER_CM_CMD_DISCONNECT]	= ucma_disconnect,
> +	[RDMA_USER_CM_CMD_INIT_QP_ATTR]	= ucma_init_qp_attr,
> +	[RDMA_USER_CM_CMD_GET_EVENT]	= ucma_get_event,
> +	[RDMA_USER_CM_CMD_GET_OPTION]	= NULL,
> +	[RDMA_USER_CM_CMD_SET_OPTION]	= NULL,
> +	[RDMA_USER_CM_CMD_NOTIFY]	= ucma_notify,
> +};

What about the rdma_cm_get_option() and rdma_cm_set_option() exposed by 
librdmacm? is it something which is on its way out?

Or.






More information about the general mailing list