| 1 | --- |
| 2 | date: 2006-10-31 |
| 3 | footer: libibverbs |
| 4 | header: "Libibverbs Programmer's Manual" |
| 5 | layout: page |
| 6 | license: 'Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md' |
| 7 | section: 3 |
| 8 | title: IBV_REQ_NOTIFY_CQ |
| 9 | --- |
| 10 | |
| 11 | # NAME |
| 12 | |
| 13 | ibv_req_notify_cq - request completion notification on a completion queue (CQ) |
| 14 | |
| 15 | # SYNOPSIS |
| 16 | |
| 17 | ```c |
| 18 | #include <infiniband/verbs.h> |
| 19 | |
| 20 | int ibv_req_notify_cq(struct ibv_cq *cq, int solicited_only); |
| 21 | ``` |
| 22 | |
| 23 | # DESCRIPTION |
| 24 | |
| 25 | **ibv_req_notify_cq()** requests a completion notification on the completion |
| 26 | queue (CQ) *cq*. |
| 27 | |
| 28 | Upon the addition of a new CQ entry (CQE) to *cq*, a completion event will be |
| 29 | added to the completion channel associated with the CQ. If the argument |
| 30 | *solicited_only* is zero, a completion event is generated for any new CQE. If |
| 31 | *solicited_only* is non-zero, an event is only generated for a new CQE with |
| 32 | that is considered "solicited." A CQE is solicited if it is a receive |
| 33 | completion for a message with the Solicited Event header bit set, or if the |
| 34 | status is not successful. All other successful receive completions, or any |
| 35 | successful send completion is unsolicited. |
| 36 | |
| 37 | # RETURN VALUE |
| 38 | |
| 39 | **ibv_req_notify_cq()** returns 0 on success, or the value of errno on failure |
| 40 | (which indicates the failure reason). |
| 41 | |
| 42 | # NOTES |
| 43 | |
| 44 | The request for notification is "one shot." Only one completion event will be |
| 45 | generated for each call to **ibv_req_notify_cq()**. |
| 46 | |
| 47 | # SEE ALSO |
| 48 | |
| 49 | **ibv_create_comp_channel**(3), |
| 50 | **ibv_create_cq**(3), |
| 51 | **ibv_get_cq_event**(3) |
| 52 | |
| 53 | # AUTHOR |
| 54 | |
| 55 | Dotan Barak <[email protected]> |