Debian Codegraph @

libibverbs/man/ibv_attach_mcast.3.md

raw symbols SCIP
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_ATTACH_MCAST
9 ---
10
11 # NAME
12
13 ibv_attach_mcast, ibv_detach_mcast - attach and detach a queue pair (QPs)
14 to/from a multicast group
15
16 # SYNOPSIS
17
18 ```c
19 #include <infiniband/verbs.h>
20
21 int ibv_attach_mcast(struct ibv_qp *qp, const union ibv_gid *gid, uint16_t lid);
22
23 int ibv_detach_mcast(struct ibv_qp *qp, const union ibv_gid *gid, uint16_t lid);
24 ```
25
26 # DESCRIPTION
27
28 **ibv_attach_mcast()** attaches the QP *qp* to the multicast group having MGID
29 *gid* and MLID *lid*.
30
31 **ibv_detach_mcast()** detaches the QP *qp* to the multicast group having MGID
32 *gid* and MLID *lid*.
33
34 # RETURN VALUE
35
36 **ibv_attach_mcast()** and **ibv_detach_mcast()** returns 0 on success, or the
37 value of errno on failure (which indicates the failure reason).
38
39 # NOTES
40
41 Only QPs of Transport Service Type **IBV_QPT_UD** may be attached to multicast
42 groups.
43
44 If a QP is attached to the same multicast group multiple times, the QP will
45 still receive a single copy of a multicast message.
46
47 In order to receive multicast messages, a join request for the multicast group
48 must be sent to the subnet administrator (SA), so that the fabric's multicast
49 routing is configured to deliver messages to the local port.
50
51 # SEE ALSO
52
53 **ibv_create_qp**(3)
54
55 # AUTHOR
56
57 Dotan Barak <[email protected]>