Debian Codegraph @

libibverbs/man/ibv_create_comp_channel.3

raw
1 .\" -*- nroff -*-
2 .\" Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md
3 .\"
4 .TH IBV_CREATE_COMP_CHANNEL 3 2006-10-31 libibverbs "Libibverbs Programmer's Manual"
5 .SH "NAME"
6 ibv_create_comp_channel, ibv_destroy_comp_channel \- create or
7 destroy a completion event channel
8 .SH "SYNOPSIS"
9 .nf
10 .B #include <infiniband/verbs.h>
11 .sp
12 .BI "struct ibv_comp_channel *ibv_create_comp_channel(struct ibv_context
13 .BI " " "*context" );
14 .sp
15 .BI "int ibv_destroy_comp_channel(struct ibv_comp_channel " "*channel" );
16 .fi
17 .SH "DESCRIPTION"
18 .B ibv_create_comp_channel()
19 creates a completion event channel for the RDMA device context
20 .I context\fR.
21 .PP
22 .B ibv_destroy_comp_channel()
23 destroys the completion event channel
24 .I channel\fR.
25 .SH "RETURN VALUE"
26 .B ibv_create_comp_channel()
27 returns a pointer to the created completion event channel, or NULL if the request fails.
28 .PP
29 .B ibv_destroy_comp_channel()
30 returns 0 on success, or the value of errno on failure (which indicates the failure reason).
31 .SH "NOTES"
32 A "completion channel" is an abstraction introduced by libibverbs that
33 does not exist in the InfiniBand Architecture verbs specification or
34 RDMA Protocol Verbs Specification. A completion channel is
35 essentially file descriptor that is used to deliver completion
36 notifications to a userspace process. When a completion event is
37 generated for a completion queue (CQ), the event is delivered via the
38 completion channel attached to that CQ. This may be useful to steer
39 completion events to different threads by using multiple completion
40 channels.
41 .PP
42 .B ibv_destroy_comp_channel()
43 fails if any CQs are still associated with the completion event
44 channel being destroyed.
45 .SH "SEE ALSO"
46 .BR ibv_open_device (3),
47 .BR ibv_create_cq (3),
48 .BR ibv_get_cq_event (3)
49 .SH "AUTHORS"
50 .TP
51 Dotan Barak <[email protected]>