Debian Codegraph @

libibverbs/man/ibv_modify_wq.3

raw
1 .\" -*- nroff -*-
2 .\" Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md
3 .\"
4 .TH IBV_MODIFY_WQ 3 2016-07-27 libibverbs "Libibverbs Programmer's Manual"
5 .SH "NAME"
6 ibv_modify_wq \- Modify a Work Queue (WQ).
7 .SH "SYNOPSIS"
8 .nf
9 .B #include <infiniband/verbs.h>
10 .sp
11 .BI "struct int ibv_modify_wq(struct ibv_wq " "*wq,"
12 .BI " struct ibv_wq_attr " "*wq_attr" );
13 .sp
14 .fi
15 .SH "DESCRIPTION"
16 .B ibv_modify_wq()
17 modifys a WQ
18 .I wq\fR.
19 The argument
20 .I wq_attr
21 is an ibv_wq_attr struct, as defined in <infiniband/verbs.h>.
22 .PP
23 .nf
24 struct ibv_wq_attr {
25 .in +8
26 uint32_t attr_mask; /* Use enum ibv_wq_attr_mask */
27 enum ibv_wq_state wq_state; /* Move to this state */
28 enum ibv_wq_state curr_wq_state; /* Assume this is the current state */
29 uint32_t flags; /* Flags values to modify, use enum ibv_wq_flags */
30 uint32_t flags_mask; /* Which flags to modify, use enum ibv_wq_flags */
31 .in -8
32 };
33 .fi
34 .PP
35 The function
36 .B ibv_modify_wq()
37 will modify the WQ based on the given
38 .I wq_attr\fB\fR->attr_mask
39 .SH "RETURN VALUE"
40 returns 0 on success, or the value of errno on failure (which indicates the failure reason).
41 .SH "SEE ALSO"
42 .BR ibv_create_wq (3),
43 .BR ibv_destroy_wq (3),
44 .SH "AUTHORS"
45 .TP
46 Yishai Hadas <[email protected]>