IBV_CREA...P_CHANNEL(3)
π IBV_CREA...P_CHANNEL(3) π
okay bestie, so this one's from the Libibverbs Programmer's Manual and it's literally the page about IBV_CREA...P_CHANNEL(3) β yes the title got squished by the terminal's little formatting moment, we don't talk about it, the vibe is still immaculate β¨
πΈ NAME πΈ
ibv_create_comp_channel, ibv_destroy_comp_channel β create or destroy a completion event channel π
π¦ SYNOPSIS π¦
#include <infiniband/verbs.h>
struct ibv_comp_channel *ibv_create_comp_channel(struct ibv_context
*context);
int ibv_destroy_comp_channel(struct ibv_comp_channel *channel);
β¨ DESCRIPTION β¨
ibv_create_comp_channel() makes you a completion event channel for the RDMA device context context. it's giving new-channel-just-dropped π
ibv_destroy_comp_channel() yeets the completion event channel channel into the void. gone. deleted. no notes π«Ά
β RETURN VALUE β
ibv_create_comp_channel() hands you back a pointer to the freshly created completion event channel, or NULL if the request fails. NULL is the sad path, bestie π
ibv_destroy_comp_channel() returns 0 on success, or the value of errno on failure (which is literally telling you the failure reason, so read it, it's not being vague on purpose π)
π NOTES π
okay so a "completion channel" is this whole abstraction that libibverbs invented β it does not exist in the InfiniBand Architecture verbs specification or the RDMA Protocol Verbs Specification. she's a libibverbs original, no cap π§
a completion channel is essentially a file descriptor that's used to deliver completion notifications to a userspace process. when a completion event is generated for a completion queue (CQ), the event gets delivered via the completion channel attached to that CQ. and the way this is actually useful? you can steer completion events to different threads by using multiple completion channels. multithreaded main character energy π₯
β οΈ heads up: ibv_destroy_comp_channel() fails if any CQs are still associated with the completion event channel you're trying to destroy. so, like, un-attach your CQs first, don't just come for her π
π SEE ALSO π
π AUTHORS π
Dotan Barak <dotanba@gmail.com> β icon, legend, wrote the whole thing π
and that's the page!! from libibverbs, dated 2006-10-31, which is honestly ancient in internet years but she still ate πβ¨ mwah, ily, go destroy your channels responsibly π π¦
π¦ where this page comes from
- alpine 3.24: rdma-core-doc 61.0-r0 Β· GPL-2.0-only OR BSD-2-Clause
- centos-stream 10: rdma-core-devel 62.0-3.el10 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- debian bookworm: libibverbs-dev 44.0-2 Β· BSD-MIT OR GPL-2.0-only
- debian trixie: libibverbs-dev 56.1-1 Β· BSD-MIT OR GPL-2.0-only
- fedora 43: rdma-core-devel 58.0-4.fc43 Β· GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
- fedora 43: rdma-core-devel 58.0-4.fc43 Β· GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
- fedora 44: rdma-core-devel 61.0-2.fc44 Β· GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
- fedora 44: rdma-core-devel 61.0-2.fc44 Β· GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
- fedora 44: rdma-core-devel 61.1^20260812git975bdaf-1.fc44 Β· GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
- fedora 44: rdma-core-devel 61.1^20260812git975bdaf-1.fc44 Β· GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixos 26.05: rdma-core 62.0
- opensuse-leap 16.0: rdma-core-devel 56.1-160000.2.2 Β· BSD-2-Clause OR GPL-2.0-only
- opensuse-leap 16.0: rdma-core-devel 56.1-160000.2.2 Β· BSD-2-Clause OR GPL-2.0-only
- opensuse-leap 16.0: rdma-core-devel 56.1-160000.2.2 Β· BSD-2-Clause OR GPL-2.0-only
- opensuse-leap 16.0: rdma-core-devel 56.1-160000.2.2 Β· BSD-2-Clause OR GPL-2.0-only
- ubuntu jammy: libibverbs-dev 39.0-1 Β· BSD-MIT OR GPL-2.0-only
- ubuntu noble: libibverbs-dev 50.0-2build2 Β· BSD-MIT OR GPL-2.0-only
- ubuntu noble: libibverbs-dev 50.0-2ubuntu0.2 Β· BSD-MIT OR GPL-2.0-only
- ubuntu questing: libibverbs-dev 56.1-1ubuntu1
- ubuntu resolute: libibverbs-dev 61.0-2ubuntu3 Β· BSD-MIT OR GPL-2.0-only
- ubuntu stonking: libibverbs-dev 64.0-1ubuntu1 Β· BSD-MIT OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms