1IBV_CREATE_AH_FROM_WC(3)Libibverbs Programmer's ManualIBV_CREATE_AH_FROM_WC(3)
2
3
4
6 ibv_init_ah_from_wc, ibv_create_ah_from_wc - initialize or create an
7 address handle (AH) from a work completion
8
10 #include <infiniband/verbs.h>
11
12 int ibv_init_ah_from_wc(struct ibv_context *context, uint8_t port_num,
13 struct ibv_wc *wc, struct ibv_grh *grh,
14 struct ibv_ah_attr *ah_attr);
15
16 struct ibv_ah *ibv_create_ah_from_wc(struct ibv_pd *pd,
17 struct ibv_wc *wc,
18 struct ibv_grh *grh,
19 uint8_t port_num);
20
22 ibv_init_ah_from_wc() initializes the address handle (AH) attribute
23 structure ah_attr for the RDMA device context context using the port
24 number port_num, using attributes from the work completion wc and the
25 Global Routing Header (GRH) structure grh.
26
27 ibv_create_ah_from_wc() creates an AH associated with the protection
28 domain pd using the port number port_num, using attributes from the
29 work completion wc and the Global Routing Header (GRH) structure grh.
30
32 ibv_init_ah_from_wc() returns 0 on success, and -1 on error.
33
34 ibv_create_ah_from_wc() returns a pointer to the created AH, or NULL if
35 the request fails.
36
38 The filled structure ah_attr returned from ibv_init_ah_from_wc() can be
39 used to create a new AH using ibv_create_ah().
40
42 ibv_open_device(3), ibv_alloc_pd(3), ibv_create_ah(3),
43 ibv_destroy_ah(3), ibv_poll_cq(3)
44
46 Dotan Barak <dotanba@gmail.com>
47
48
49
50libibverbs 2006-10-31 IBV_CREATE_AH_FROM_WC(3)