manadv_set_context_attr(3) | manadv_set_context_attr(3) |
manadv_set_context_attr - Set context attributes
#include <infiniband/manadv.h> int manadv_set_context_attr(struct ibv_context *context, enum manadv_set_ctx_attr_type attr_type, void *attr);
manadv_set_context_attr gives the ability to set vendor specific attributes on the RDMA context.
enum manadv_set_ctx_attr_type { /* Attribute type uint8_t */ MANADV_SET_CTX_ATTR_BUF_ALLOCATORS = 0, };
struct manadv_ctx_allocators { void *(*alloc)(size_t size, void *priv_data); void (*free)(void *ptr, void *priv_data); void *data; };
Returns 0 on success, or the value of errno on failure (which indicates the failure reason).
Long Li <longli@microsoft.com>