|
NAMEibv_create_wq, ibv_destroy_wq - create or destroy a Work Queue (WQ).SYNOPSIS#include <infiniband/verbs_exp.h> struct ibv_wq *ibv_create_wq(struct ibv_context *context, struct ibv_wq_init_attr *wq_init_attr); int ibv_destroy_wq(struct ibv_wq *wq); DESCRIPTIONibv_create_wq() creates a WQ associated with the ibv_context context. The argument wq_init_attr is an ibv_wq_init_attr struct, as defined in <infiniband/verbs.h>.struct ibv_wq_init_attr { The function ibv_create_wq() will update the wq_init_attr->max_wr and wq_init_attr->max_sge fields with the actual WQ values of the WQ that was created; the values will be greater than or equal to the values requested. ibv_destroy_wq() destroys the WQ wq. RETURN VALUEibv_create_wq() returns a pointer to the created WQ, or NULL if the request fails.ibv_destroy_wq() returns 0 on success, or the value of errno on failure (which indicates the failure reason). SEE ALSOibv_modify_wq(3),AUTHORS
Visit the GSP FreeBSD Man Page Interface. |