ib_req_notify_cq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so we're in the Kernel API Manual, and the main character of this page is ib_req_notify_cq(9) β€” the call where you ask a CQ to hit you up with a completion notification. let's get into it bestie πŸ’–

✨ NAME ✨

ib_req_notify_cq β€” request completion notification on a CQ. that's the vibe, no cap.

🌸 SYNOPSIS 🌸

int ib_req_notify_cq (struct ib_cq *cq , enum ib_cq_notify_flags flags
);

πŸŽ€ ARGUMENTS πŸŽ€

  • cq β€” the CQ you want to generate an event for. it's giving main character energy.
  • flags β€” must contain exactly one of IB_CQ_SOLICITED or IB_CQ_NEXT_COMP to request an event on the next solicited event or next work completion at any type, respectively. IB_CQ_REPORT_MISSED_EVENTS may also be |ed in to request a hint about missed events, as described below. bestie, exactly one of those first two, okay? mandatory πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

here's the return value tea, because this is literally the whole point:

  • Return Value: < 0 β€” means an error occurred while requesting notification. 😭 not slay.
  • Return Value: == 0 β€” means notification was requested successfully, and if IB_CQ_REPORT_MISSED_EVENTS was passed in, then no events were missed and it is safe to wait for another event. in this case it is guaranteed that any work completions added to the CQ since the last CQ poll will trigger a completion notification event. periodt ✨
  • Return Value: > 0 β€” is only returned if IB_CQ_REPORT_MISSED_EVENTS was passed in. it means that the consumer must poll the CQ again to make sure it is empty to avoid missing an event because of a race between requesting notification and an entry being added to the CQ. this return value means it is possible (but not guaranteed) that a work completion has been added to the CQ since the last poll without triggering a completion notification event. so like, go poll again, don't just vibe πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

the SEE ALSO friend group is huge and we love that for them:


okay bye bestie β€” source/version is ./include/rdma, dated October 2026, and this page is ib_req_notify_cq(9) πŸ«ΆπŸ’‹

πŸ“¦ where this page comes from