*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: ibv_create_wq | Section: 3 | Source: FreeBSD | File: ibv_create_wq.3.gz
IBV_CREATE_WQ(3) Libibverbs Programmer's Manual IBV_CREATE_WQ(3) NAME ibv_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); DESCRIPTION ibv_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 { void *wq_context; /* Associated context of the WQ */ enum ibv_wq_type wq_type; /* WQ type */ uint32_t max_wr; /* Requested max number of outstanding WRs in the WQ */ uint32_t max_sge; /* Requested max number of scatter/gather (s/g) elements per WR in the WQ */ struct ibv_pd *pd; /* PD to be associated with the WQ */ struct ibv_cq *cq; /* CQ to be associated with the WQ */ uint32_t comp_mask; /* Identifies valid fields. Use ibv_wq_init_attr_mask */ uint32_t create_flags /* Creation flags for this WQ, use enum ibv_wq_flags */ }; enum ibv_wq_flags { IBV_WQ_FLAGS_CVLAN_STRIPPING = 1 << 0, /* CVLAN field will be stripped from incoming packets */ IBV_WQ_FLAGS_SCATTER_FCS = 1 << 1, /* FCS field will be scattered to host memory */ IBV_WQ_FLAGS_RESERVED = 1 << 2, }; 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 re- quested. ibv_destroy_wq() destroys the WQ wq. RETURN VALUE ibv_create_wq() returns a pointer to the created WQ, or NULL if the re- quest fails. ibv_destroy_wq() returns 0 on success, or the value of errno on failure (which indicates the failure reason). SEE ALSO ibv_modify_wq(3), AUTHORS Yishai Hadas <[email protected]> libibverbs 2016-07-27 IBV_CREATE_WQ(3)

Navigation Options